public void remove(T object){
  int pos;
synchronized (mLock) {
    pos=getPosition(object);
    if (pos == -1)     return;
    mObjects.remove(pos);
  }
  if (mNotifyOnChange)   notifyItemRemoved(pos);
}

public void remove ( T object ) { int pos ; synchronized ( mLock ) { pos = getPosition ( object ) ; if ( pos == - 1 ) return ; mObjects . remove ( pos ) ; } if ( mNotifyOnChange ) notifyItemRemoved ( pos ) ; }
removes the specified object from the array .
