public void retainAll(Collection<T> items){
  mItems.retainAll(items);
  notifyDataSetChanged();
}

public void retainAll ( Collection < T > items ) { mItems . retainAll ( items ) ; notifyDataSetChanged ( ) ; }
retains only the elements in the list that are contained in the specified collection
