public static class AnnotationDescription.EnumerationValue.ForLoadedEnumeration extends AnnotationDescription.EnumerationValue.AbstractEnumerationValue
AnnotationDescription.EnumerationValue.AbstractEnumerationValue, AnnotationDescription.EnumerationValue.ForLoadedEnumeration
Constructor and Description |
---|
ForLoadedEnumeration(Enum<?> value)
Creates a new enumeration value representation for a loaded enumeration.
|
Modifier and Type | Method and Description |
---|---|
static List<AnnotationDescription.EnumerationValue> |
asList(Enum<?>[] enumerations)
Enlists a given array of loaded enumerations as enumeration values.
|
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, toString
public ForLoadedEnumeration(Enum<?> value)
value
- The value to represent.public static List<AnnotationDescription.EnumerationValue> asList(Enum<?>[] enumerations)
enumerations
- The enumerations to represent.public String getValue()
AnnotationDescription.EnumerationValue
public TypeDescription getEnumerationType()
AnnotationDescription.EnumerationValue
public <T extends Enum<T>> T load(Class<T> type)
AnnotationDescription.EnumerationValue
T
- The enumeration type.type
- A type constant representing the enumeration value.Copyright © 2014–2015. All rights reserved.