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