Determines whether the specified value is one of the constants defined in this class.
public static boolean valid( int dock )
dock
The value to check.
Returns true if the value is valid; otherwise, returns false.