Code example for ArrayList

Methods: containsindexOfremove

0
        mBundle.putParcelable(name, value);
        return this;
    } 
 
    private void removeFromRequestData(String name) {
        if (mParamList.contains(name)) {
            final int index = mParamList.indexOf(name);
            mParamList.remove(index);
            mTypeList.remove(index);
            mBundle.remove(name);
        } 
    } 
 
    /** 
     * Check whether the request has an existing value for the given name. 
     * 
     * @param name The parameter name. 
     * @return Whether the request has an existing value for the given name. 
     */ 
    public boolean contains(String name) {
        return mParamList.contains(name);