private boolean isValueSupported(Object value){
  for (int i=0; i < values.length; i++) {
    if (value.equals(values[i])) {
      return true;
    }
  }
  return false;
}

private boolean isValueSupported ( Object value ) { for ( int i = 0 ; i < values . length ; i ++ ) { if ( value . equals ( values [ i ] ) ) { return true ; } } return false ; }
indicates whether the value specified is supported .
