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 boolean |
_add(Annotation ann) |
boolean |
add(Annotation ann)
Method called to add specified annotation in the Map.
|
boolean |
addIfNotPresent(Annotation ann)
Method called to add specified annotation in the Map, but
only if it didn't yet exist.
|
Iterable<Annotation> |
annotations() |
<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)
Annotations
get
in interface Annotations
public Iterable<Annotation> annotations()
public static AnnotationMap merge(AnnotationMap primary, AnnotationMap secondary)
public int size()
Annotations
size
in interface Annotations
public boolean addIfNotPresent(Annotation ann)
public boolean add(Annotation ann)
protected final boolean _add(Annotation ann)
Copyright © 2014–2015 FasterXML. All rights reserved.