public void addAll(Collection<? extends T> collection){
synchronized (mLock) {
    if (mOriginalValues != null) {
      mOriginalValues.addAll(collection);
    }
 else {
      mObjects.addAll(collection);
    }
  }
  if (mNotifyOnChange)   notifyDataSetChanged();
}

public void addAll ( Collection < ? extends T > collection ) { synchronized ( mLock ) { if ( mOriginalValues != null ) { mOriginalValues . addAll ( collection ) ; } else { mObjects . addAll ( collection ) ; } } if ( mNotifyOnChange ) notifyDataSetChanged ( ) ; }
adds the specified collection at the end of the array .
