public void clear(){
synchronized (lock) {
    if (items == null) {
      return;
    }
    items.clear();
  }
  if (notifyOnChange) {
    notifyDataSetChanged();
  }
}

public void clear ( ) { synchronized ( lock ) { if ( items == null ) { return ; } items . clear ( ) ; } if ( notifyOnChange ) { notifyDataSetChanged ( ) ; } }
clears all the items from the list
