V
- The type of the represented enumeration.public static class AnnotationValue.ForEnumerationDescription.Loaded<V extends Enum<V>> extends AnnotationValue.Loaded.AbstractBase<V>
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForEnumerationDescription.Loaded.WithIncompatibleRuntimeType
Represents an annotation's enumeration value for a runtime type that is not an enumeration type.
|
AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<Z>
AnnotationValue.Loaded.AbstractBase<W>
Constructor and Description |
---|
Loaded(V enumeration)
Creates a loaded version of an enumeration description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
AnnotationValue.State |
getState()
Returns the state of the represented loaded annotation value.
|
int |
hashCode() |
boolean |
represents(Object value)
Verifies if this loaded value represents the supplied loaded value.
|
V |
resolve()
Resolves the value to the actual value of an annotation.
|
String |
toString() |
resolve
public Loaded(V enumeration)
enumeration
- The represented enumeration.public AnnotationValue.State getState()
public V resolve()
public boolean represents(Object value)
value
- A loaded annotation value.true
if the supplied annotation value is represented by this annotation value.public boolean equals(@MaybeNull Object other)
Copyright © 2014–2024. All rights reserved.