public final <T>void clearInternal(List<T> list){
  int data_size_before_remove=list.size();
  final int display_size_before_remove=getItemCount();
synchronized (mLock) {
    list.clear();
  }
  notifyAfterRemoveAllData(data_size_before_remove,display_size_before_remove);
}

public final < T > void clearInternal ( List < T > list ) { int data_size_before_remove = list . size ( ) ; final int display_size_before_remove = getItemCount ( ) ; synchronized ( mLock ) { list . clear ( ) ; } notifyAfterRemoveAllData ( data_size_before_remove , display_size_before_remove ) ; }
clear the list of the adapter
