@Override public boolean equals(Object obj){
  return ((obj != null) && (getClass() == obj.getClass()) && (value == ((Enumerated)obj).value));
}

@ Override public boolean equals ( Object obj ) { return ( ( obj != null ) && ( getClass ( ) == obj . getClass ( ) ) && ( value == ( ( Enumerated ) obj ) . value ) ) ; }
compares this enumerated to the specified enumerated . the result is true if and only if the argument is not null and is of the same class .
