public final class AnnotatedValue<E> extends Object implements AnnotationBoxedElement<E>
| Constructor and Description |
|---|
AnnotatedValue(E 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) |
Collection<Annotation> |
getAnnotationCollection() |
Annotation[] |
getAnnotations() |
Collection<Annotation> |
getCollectionInheritableAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
String |
getDescription() |
<T extends Annotation> |
hasAnnotation(Class<T> tClass) |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> aClass) |
String |
toString()
Delegates and returns the result of calling toString on the boxed value.
|
E |
unbox() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic AnnotatedValue(E value, Collection<Annotation> annotations)
value - The value to annotateannotations - This value's annotations.public boolean isAnnotationPresent(Class<? extends Annotation> aClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> tClass)
getAnnotation in interface AnnotatedElementpublic <T extends Annotation> boolean hasAnnotation(Class<T> tClass)
hasAnnotation in interface AnnotationBoxedElement<E>public Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic Collection<Annotation> getAnnotationCollection()
getAnnotationCollection in interface AnnotationBoxedElement<E>public E unbox()
unbox in interface BoxedValue<E>public Object box(Object value)
box in interface BoxingStrategyvalue - Value to boxpublic Collection<Annotation> getCollectionInheritableAnnotations()
public final String getDescription()
public String toString()
Copyright © 2018 Atlassian. All rights reserved.