public boolean contains(T dataSet){
  for (int i=0; i < mDataSets.size(); i++) {
    T set=mDataSets.get(i);
    if (set.equals(dataSet)) {
      return true;
    }
  }
  return false;
}

public boolean contains ( T dataSet ) { for ( int i = 0 ; i < mDataSets . size ( ) ; i ++ ) { T set = mDataSets . get ( i ) ; if ( set . equals ( dataSet ) ) { return true ; } } return false ; }
checks if this data object contains the specified dataset . returns true if so , false if not .
