CharacterSet.valid

Overview | Methods | Fields | This Package | All Packages

CharacterSet.valid

Determines whether the value assigned to the method is a valid number for the class's enumerated values.

Syntax

public static boolean valid( int value )

Parameters

value

The number being evaluated.

Return Value

Returns true if the value is valid; otherwise, returns false.

Remarks

The valid method is used to determine whether a specific integer value is within the range of numbers for the enumerated members of this class. Use this value to determine if a value returned from a method is a valid enumerated value for this class.