public void clear(){
  final int size=getItemCount();
  mObjects.clear();
  notifyItemRangeRemoved(0,size);
}

public void clear ( ) { final int size = getItemCount ( ) ; mObjects . clear ( ) ; notifyItemRangeRemoved ( 0 , size ) ; }
remove all elements from the list .
