public void clear(){
synchronized (mLock) {
    if (mOriginalValues != null) {
      mOriginalValues.clear();
    }
 else {
      mObjects.clear();
    }
  }
  if (mNotifyOnChange)   notifyDataSetChanged();
}

public void clear ( ) { synchronized ( mLock ) { if ( mOriginalValues != null ) { mOriginalValues . clear ( ) ; } else { mObjects . clear ( ) ; } } if ( mNotifyOnChange ) notifyDataSetChanged ( ) ; }
remove all elements from the list .
