public final class AnnotationMap extends Object implements Annotations
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<Class<? extends Annotation>,Annotation> |
_annotations |
| Constructor and Description |
|---|
AnnotationMap() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_add(Annotation ann) |
void |
add(Annotation ann)
Method called to add specified annotation in the Map.
|
void |
addIfNotPresent(Annotation ann)
Method called to add specified annotation in the Map, but
only if it didn't yet exist.
|
<A extends Annotation> |
get(Class<A> cls)
Main access method used to find value for given annotation.
|
static AnnotationMap |
merge(AnnotationMap primary,
AnnotationMap secondary) |
int |
size()
Returns number of annotation entries in this collection.
|
String |
toString() |
protected HashMap<Class<? extends Annotation>,Annotation> _annotations
public <A extends Annotation> A get(Class<A> cls)
Annotationsget in interface Annotationspublic static AnnotationMap merge(AnnotationMap primary, AnnotationMap secondary)
public int size()
Annotationssize in interface Annotationspublic void addIfNotPresent(Annotation ann)
public void add(Annotation ann)
protected final void _add(Annotation ann)