| Modifier and Type | Field and Description |
|---|---|
| protected HashMap |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | |
| public boolean | Returns: True if the addition changed the contents, that is, this map did not already have specified annotationMethod called to add specified annotation in the Map. |
| public boolean | addIfNotPresent(Annotation ann)
Method called to add specified annotation in the Map, but only if it didn't yet exist. |
| public Iterable | |
| public <A extends Annotation> A | get(Class<A> cls)
Implements com. Main access method used to find value for given annotation. |
| public boolean | |
| public boolean | hasOneOf(Class<? extends Annotation>[] annoClasses)
Implements com. Helper method that can be used for a "bulk" check to see if at least one of given annotation types is included within this map. |
| public static AnnotationMap | |
| public static AnnotationMap | |
| public int | size()
Implements com. Returns number of annotation entries in this collection. |
| public String |
| _annotations | back to summary |
|---|---|
| protected HashMap<Class<?>, Annotation> _annotations | |
| AnnotationMap | back to summary |
|---|---|
| public AnnotationMap() | |
| AnnotationMap | back to summary |
|---|---|
| pack-priv AnnotationMap(HashMap<Class<?>, Annotation> a) | |
| _add | back to summary |
|---|---|
| protected final boolean _add(Annotation ann) | |
| add | back to summary |
|---|---|
| public boolean add(Annotation ann) Method called to add specified annotation in the Map.
| |
| addIfNotPresent | back to summary |
|---|---|
| public boolean addIfNotPresent(Annotation ann) Method called to add specified annotation in the Map, but only if it didn't yet exist. | |
| annotations | back to summary |
|---|---|
public Iterable
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> A get(Class<A> cls) Implements com. Doc from com. Main access method used to find value for given annotation.
| |
| has | back to summary |
|---|---|
| public boolean has(Class<?> cls) Implements com.
| |
| hasOneOf | back to summary |
|---|---|
| public boolean hasOneOf(Class<? extends Annotation>[] annoClasses) Implements com. Helper method that can be used for a "bulk" check to see if at least one of given annotation types is included within this map.
| |
| merge | back to summary |
|---|---|
| public static AnnotationMap merge(AnnotationMap primary, AnnotationMap secondary) | |
| of | back to summary |
|---|---|
| public static AnnotationMap of(Class<?> type, Annotation value) | |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Returns number of annotation entries in this collection.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |