public void add(T object){
  int pos;
synchronized (mLock) {
    pos=getItemCount();
    mObjects.add(object);
  }
  if (mNotifyOnChange)   notifyItemInserted(pos);
}

public void add ( T object ) { int pos ; synchronized ( mLock ) { pos = getItemCount ( ) ; mObjects . add ( object ) ; } if ( mNotifyOnChange ) notifyItemInserted ( pos ) ; }
adds the specified object at the end of the array .
