Determines whether a specified value is valid for this enumeration type.
public static boolean valid( int n )
n
The value to check.
Returns true if the value is valid for this class; otherwise, returns false.
You should override this method in your own enumeration classes.