public void remove(int position){
synchronized (lock) {
    if (items == null || position < 0 || position > getItemCount()) {
      return;
    }
    items.remove(position);
  }
  if (notifyOnChange) {
    notifyItemRemoved(position);
  }
}

public void remove ( int position ) { synchronized ( lock ) { if ( items == null || position < 0 || position > getItemCount ( ) ) { return ; } items . remove ( position ) ; } if ( notifyOnChange ) { notifyItemRemoved ( position ) ; } }
removes the item with the specified position from the list
