| Modifier and Type | Field and Description |
|---|---|
| protected final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <A extends Annotation> A | get(Class<A> cls)
Implements tools. Main access method used to find value for given annotation. |
| public boolean | |
| public boolean | hasOneOf(Class<? extends Annotation>[] annoClasses)
Implements tools. 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 static AnnotationMap | |
| public int | size()
Implements tools. Returns number of annotation entries in this collection. |
| public String | |
| public Stream | values()
Implements tools. Access method that returns a stream of all annotations contained. |
| _annotations | back to summary |
|---|---|
| protected final Map<Class<?>, Annotation> _annotations | |
| AnnotationMap | back to summary |
|---|---|
| public AnnotationMap() | |
| AnnotationMap | back to summary |
|---|---|
| public AnnotationMap(Map<Class<?>, Annotation> a) | |
| get | back to summary |
|---|---|
| public <A extends Annotation> A get(Class<A> cls) Implements tools. Doc from tools. Main access method used to find value for given annotation.
| |
| has | back to summary |
|---|---|
| public boolean has(Class<? extends Annotation> cls) Implements tools.
| |
| hasOneOf | back to summary |
|---|---|
| public boolean hasOneOf(Class<? extends Annotation>[] annoClasses) Implements tools. 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) | |
| of | back to summary |
|---|---|
| public static AnnotationMap of(Collection<Annotation> rawAnnotations) | |
| size | back to summary |
|---|---|
| public int size() Implements tools. Doc from tools. 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-
| |
| values | back to summary |
|---|---|
| public Stream Implements tools. Doc from tools. Access method that returns a stream of all annotations contained.
| |