public final class AnnotatedValue extends Object implements AnnotationBoxedElement
Constructor and Description |
---|
AnnotatedValue(Object value,
Collection<Annotation> annotations)
Construct a new annotated value.
|
Modifier and Type | Method and Description |
---|---|
Object |
box(Object value)
This will box another object with the same annotations as this value.
|
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> tClass) |
Annotation[] |
getAnnotations() |
Collection<Annotation> |
getCollectionInheritableAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
String |
getDescription() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> aClass) |
String |
toString()
Delegates and returns the result of calling toString on the boxed value.
|
Object |
unbox() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public AnnotatedValue(Object value, Collection<Annotation> annotations)
value
- The value to annotateannotations
- This values annotations.public boolean isAnnotationPresent(Class<? extends Annotation> aClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> tClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public Object unbox()
unbox
in interface BoxedValue
public Object box(Object value)
box
in interface BoxingStrategy
value
- Value to boxpublic Collection<Annotation> getCollectionInheritableAnnotations()
public final String getDescription()
public String toString()
Copyright © 2003–2016 Atlassian. All rights reserved.