public void addAll(Collection<? extends T> collection){
  int pos;
synchronized (mLock) {
    pos=getItemCount();
    mObjects.addAll(collection);
  }
  if (mNotifyOnChange)   notifyItemRangeInserted(pos,collection.size());
}

public void addAll ( Collection < ? extends T > collection ) { int pos ; synchronized ( mLock ) { pos = getItemCount ( ) ; mObjects . addAll ( collection ) ; } if ( mNotifyOnChange ) notifyItemRangeInserted ( pos , collection . size ( ) ) ; }
adds the specified collection at the end of the array .
