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, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic AnnotatedValue(Object value, Collection<Annotation> annotations)
value - The value to annotateannotations - This values annotations.public boolean isAnnotationPresent(Class<? extends Annotation> aClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> tClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic Object unbox()
unbox in interface BoxedValuepublic Object box(Object value)
box in interface BoxingStrategyvalue - Value to boxpublic Collection<Annotation> getCollectionInheritableAnnotations()
public final String getDescription()
public String toString()
Copyright © 2003–2016 Atlassian. All rights reserved.