public void add(final T object){
synchronized (mLock) {
    mList.add(object);
  }
  notifyDataSetChanged();
}

public void add ( final T object ) { synchronized ( mLock ) { mList . add ( object ) ; } notifyDataSetChanged ( ) ; }
adds the specified object at the end of the array .
