Code example for ArrayList

Methods: clear

0
    return preferenceList.remove(preference);
  } 
 
  @Implementation 
  public void removeAll() { 
    preferenceList.clear();
  } 
 
  /** 
   * Note: copied wholesale from Android source 
   * @param key 
   * @return 
   */ 
  @Implementation 
  public Preference findPreference(CharSequence key) {
    if (TextUtils.equals(getKey(), key)) {
      return realPreferenceGroup;
    } 
    final int preferenceCount = getPreferenceCount();
    for (int i = 0; i < preferenceCount; i++) {