public void validate(){
  if (VALIDATE) {
    Set<Integer> values=new HashSet<Integer>();
    for (int i=0; i < members.length; i++) {
      values.add(members[i]);
    }
    if (values.size() != members.length) {
      throw new FrameworkException("not a valid subset");
    }
  }
}

public void validate ( ) { if ( VALIDATE ) { Set < Integer > values = new HashSet < Integer > ( ) ; for ( int i = 0 ; i < members . length ; i ++ ) { values . add ( members [ i ] ) ; } if ( values . size ( ) != members . length ) { throw new FrameworkException ( "not a valid subset" ) ; } } }
checks if this subset is valid , throwing an exception if not .
