U - The type where primitive values are represented by their boxed type.public static class TypePool.LazyTypeDescription.AnnotationValue.Trivial<U> extends Object implements TypePool.LazyTypeDescription.AnnotationValue<U,U>
String or an array of the latter types.| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.LazyTypeDescription.AnnotationValue.Trivial.Loaded<V>
Represents a trivial loaded value.
|
TypePool.LazyTypeDescription.AnnotationValue.ForAnnotation, TypePool.LazyTypeDescription.AnnotationValue.ForComplexArray, TypePool.LazyTypeDescription.AnnotationValue.ForEnumeration, TypePool.LazyTypeDescription.AnnotationValue.ForType, TypePool.LazyTypeDescription.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() |
TypePool.LazyTypeDescription.AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
U |
resolve(TypePool typePool)
Resolves the unloaded value of this annotation.
|
String |
toString() |
public Trivial(U value)
value - The value to represent.public U resolve(TypePool typePool)
TypePool.LazyTypeDescription.AnnotationValueresolve in interface TypePool.LazyTypeDescription.AnnotationValue<U,U>typePool - The type pool to be used for looking up linked types.public TypePool.LazyTypeDescription.AnnotationValue.Loaded<U> load(ClassLoader classLoader)
TypePool.LazyTypeDescription.AnnotationValueload in interface TypePool.LazyTypeDescription.AnnotationValue<U,U>classLoader - The class loader for loading this value.Copyright © 2014. All rights reserved.