ValueEnum



Methods
static void check(String[] enumerators)
Check for any violations, such as empty values, duplicate values.
static void check(String[] enumerators)
Check for any violations, such as empty values, duplicate values.
Parameters:
enumerators - the enumerators
static ValueEnum get(String[] enumerators, int value)
Create an ENUM value from the provided enumerators and value.
static ValueEnum get(String[] enumerators, int value)
Create an ENUM value from the provided enumerators and value.
Parameters:
enumerators - the enumerators
value - a value
Returns:
the ENUM value
static ValueEnum get(String[] enumerators, String value)
static ValueEnum get(String[] enumerators, String value)
static boolean isValid(String[] enumerators, Value value)
Evaluates whether a valid ENUM can be constructed from the provided enumerators and value.
static boolean isValid(String[] enumerators, Value value)
Evaluates whether a valid ENUM can be constructed from the provided enumerators and value.
Parameters:
enumerators - the enumerators
value - the value
Returns:
whether a valid ENUM can be constructed from the provided values
int compareSecure(Value v, CompareMode mode)
int compareSecure(Value v, CompareMode mode)
String[] getEnumerators()
String[] getEnumerators()