public void add(T object){
  if (mEventDelegate != null)   mEventDelegate.addData(object == null ? 0 : 1);
  if (object != null) {
synchronized (mLock) {
      mObjects.add(object);
    }
  }
  if (mObserver != null)   mObserver.onItemRangeInserted(getCount() + 1,1);
  if (mNotifyOnChange)   notifyItemInserted(headers.size() + getCount() + 1);
  log("add notifyItemInserted " + (headers.size() + getCount() + 1));
}

public void add ( T object ) { if ( mEventDelegate != null ) mEventDelegate . addData ( object == null ? 0 : 1 ) ; if ( object != null ) { synchronized ( mLock ) { mObjects . add ( object ) ; } } if ( mObserver != null ) mObserver . onItemRangeInserted ( getCount ( ) + 1 , 1 ) ; if ( mNotifyOnChange ) notifyItemInserted ( headers . size ( ) + getCount ( ) + 1 ) ; log ( "add notifyItemInserted " + ( headers . size ( ) + getCount ( ) + 1 ) ) ; }
adds the specified object at the end of the array .
