private void shrinkValueSet(int maxSize){
  if (valueSet != null) {
    if (valueSet.size() > maxSize) {
      Set<String> newSet=new TreeSet<String>();
      Iterator<String> i=valueSet.iterator();
      int count=0;
      while (i.hasNext() && count < maxSize) {
        newSet.add(i.next());
        count++;
      }
      this.valueSet=newSet;
      valueSetRelation=valueSetRelation.merge(SetRelation.SUPERSET);
      if (owner != null) {
        owner.setNominalDataWasShrinked(true);
      }
    }
  }
}

private void shrinkValueSet ( int maxSize ) { if ( valueSet != null ) { if ( valueSet . size ( ) > maxSize ) { Set < String > newSet = new TreeSet < String > ( ) ; Iterator < String > i = valueSet . iterator ( ) ; int count = 0 ; while ( i . hasNext ( ) && count < maxSize ) { newSet . add ( i . next ( ) ) ; count ++ ; } this . valueSet = newSet ; valueSetRelation = valueSetRelation . merge ( SetRelation . SUPERSET ) ; if ( owner != null ) { owner . setNominalDataWasShrinked ( true ) ; } } } }
throws away nominal values until the value set size is at most the given value .
