public final class ToStringDelegatingAnnotationBoxedElement extends Object implements AnnotationBoxedElement
AnnotationBoxedElement
that delegates all operations to
the wrapped element except for toString() which is delegated to the boxed value itself.Constructor and Description |
---|
ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
box(Object value)
Box the provided value according to the boxing strategy
|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
String |
toString() |
Object |
unbox() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate)
public Object unbox()
unbox
in interface BoxedValue
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public Object box(Object value)
BoxingStrategy
box
in interface BoxingStrategy
value
- object to boxCopyright © 2003–2016 Atlassian. All rights reserved.