U
- The type where primitive values are represented by their boxed type.public static class AnnotationValue.ForConstant<U> extends AnnotationValue.AbstractBase<U,U>
String
or an array of the latter types.Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForConstant.Loaded<V>
Represents a trivial loaded value.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationValue.ForComplexArray<U,V>, AnnotationValue.ForConstant<U>, AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationValue.ForType<U extends Class<U>>
UNDEFINED
Constructor and Description |
---|
ForConstant(U value)
Creates a new representation of a trivial annotation value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
U |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
resolve
public ForConstant(U value)
value
- The value to represent.public U resolve()
AnnotationValue
public AnnotationValue.Loaded<U> load(ClassLoader classLoader)
AnnotationValue
classLoader
- The class loader for loading this value.Copyright © 2014–2016. All rights reserved.