public enum EnumSelector extends Enum<EnumSelector>
EnumOptions to identify an input value.
When parsing a given input, values will be compared against one of the properties and if there's a match, the
corresponding enumeration value will be used to set the field of an annotated class.| Enum Constant and Description |
|---|
CUSTOM_FIELD
Matches the value of a field of the annotated enumeration
|
CUSTOM_METHOD
Matches the value of a method of the annotated enumeration
|
NAME
Matches the result of
Enum.name() |
ORDINAL
Matches the result of
Enum.ordinal() |
STRING
Matches the result of
Enum.toString() ()} |
| Modifier and Type | Method and Description |
|---|---|
static EnumSelector |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumSelector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumSelector ORDINAL
Enum.ordinal()public static final EnumSelector NAME
Enum.name()public static final EnumSelector STRING
Enum.toString() ()}public static final EnumSelector CUSTOM_FIELD
public static final EnumSelector CUSTOM_METHOD
public static EnumSelector[] values()
for (EnumSelector c : EnumSelector.values()) System.out.println(c);
public static EnumSelector valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 Univocity Software Pty Ltd. All rights reserved.