public enum EnumGetMethod extends java.lang.Enum<EnumGetMethod>
UnmodifiableConfig.getEnum(String, Class, EnumGetMethod).| Enum Constant and Description |
|---|
NAME
If the config value is an enum constant, returns it as it is.
|
NAME_IGNORECASE
If the config value is an enum constant, returns it as it is.
|
ORDINAL_OR_NAME
If the config value is an enum constant, returns it as it is.
|
ORDINAL_OR_NAME_IGNORECASE
If the config value is an enum constant, returns it as it is.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.Enum<T>> |
get(java.lang.Object value,
java.lang.Class<T> enumType) |
boolean |
isCaseSensitive() |
boolean |
isOrdinalOk() |
<T extends java.lang.Enum<T>> |
validate(java.lang.Object value,
java.lang.Class<T> enumType) |
static EnumGetMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumGetMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumGetMethod NAME
public static final EnumGetMethod NAME_IGNORECASE
UnmodifiableConfig (and other classes) when
not explicitely specified.public static final EnumGetMethod ORDINAL_OR_NAME
ordinal() is equal to the value.
If it's a value of another type, throws an error.public static final EnumGetMethod ORDINAL_OR_NAME_IGNORECASE
ordinal() is equal to the value.
If it's a value of another type, throws an error.public static EnumGetMethod[] values()
for (EnumGetMethod c : EnumGetMethod.values()) System.out.println(c);
public static EnumGetMethod valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isCaseSensitive()
public boolean isOrdinalOk()
public <T extends java.lang.Enum<T>> T get(java.lang.Object value,
java.lang.Class<T> enumType)
public <T extends java.lang.Enum<T>> boolean validate(java.lang.Object value,
java.lang.Class<T> enumType)