public static class EnumerationDescription.ForLoadedEnumeration extends EnumerationDescription.AbstractBase
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.LatentNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName| Modifier and Type | Field and Description |
|---|---|
private java.lang.Enum<?> |
value
The loaded enumeration value.
|
EMPTY_NAME, NO_NAME| Constructor and Description |
|---|
ForLoadedEnumeration(java.lang.Enum<?> value)
Creates a new enumeration value representation for a loaded enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<EnumerationDescription> |
asList(java.lang.Enum<?>[] enumerations)
Enlists a given array of loaded enumerations as enumeration values.
|
TypeDescription |
getEnumerationType()
Returns the type of this enumeration.
|
java.lang.String |
getValue()
Returns the name of this instance's enumeration value.
|
<T extends java.lang.Enum<T>> |
load(java.lang.Class<T> type)
Prepares this enumeration value to be loaded.
|
equals, getActualName, hashCode, toStringpublic ForLoadedEnumeration(java.lang.Enum<?> value)
value - The value to represent.public static java.util.List<EnumerationDescription> asList(java.lang.Enum<?>[] enumerations)
enumerations - The enumerations to represent.public java.lang.String getValue()
public TypeDescription getEnumerationType()
public <T extends java.lang.Enum<T>> T load(java.lang.Class<T> type)
T - The enumeration type.type - A type constant representing the enumeration value.