public static class EnumerationDescription.Latent extends EnumerationDescription.AbstractEnumerationDescription
EnumerationDescription.AbstractEnumerationDescription, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent| Constructor and Description |
|---|
Latent(TypeDescription enumerationType,
String value)
Creates a latent description of an enumeration value.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
getEnumerationType()
Returns the type of this enumeration.
|
String |
getValue()
Returns the name of this instance's enumeration value.
|
<T extends Enum<T>> |
load(Class<T> type)
Prepares this enumeration value to be loaded.
|
equals, hashCode, toStringpublic Latent(TypeDescription enumerationType, String value)
enumerationType - The enumeration type.value - The value of the enumeration.public String getValue()
EnumerationDescriptionpublic TypeDescription getEnumerationType()
EnumerationDescriptionpublic <T extends Enum<T>> T load(Class<T> type)
EnumerationDescriptionT - The enumeration type.type - A type constant representing the enumeration value.Copyright © 2014–2015. All rights reserved.