AnnotatedElementJsonbAnnotatedElementpublic class JsonbAnnotated extends Object implements AnnotatedElement
| Modifier and Type | Field | Description |
|---|---|---|
protected Map<Class<? extends Annotation>,Annotation> |
annotations |
| Constructor | Description |
|---|---|
JsonbAnnotated(Annotation[] initialAnnotations) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
|
Annotation[] |
getAnnotations() |
|
Annotation[] |
getDeclaredAnnotations() |
|
void |
putAnnotation(Annotation annotation) |
Adds annotation.
|
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentprotected final Map<Class<? extends Annotation>,Annotation> annotations
public JsonbAnnotated(Annotation[] initialAnnotations)
initialAnnotations - Annotations to initialize from.public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic void putAnnotation(Annotation annotation)
annotation - Annotation to add.Copyright © 2018 Oracle Corporation. All rights reserved.