java.lang.Object
tools.jackson.databind.introspect.AnnotationMap
- All Implemented Interfaces:
Annotations
Simple helper class used to keep track of collection of
Jackson Annotations associated with annotatable things
(methods, constructors, classes).
Note that only Jackson-owned annotations are tracked (for now?).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AMain access method used to find value for given annotation.boolean
boolean
hasOneOf
(Class<? extends Annotation>[] annoClasses) 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.static AnnotationMap
merge
(AnnotationMap primary, AnnotationMap secondary) static AnnotationMap
of
(Class<?> type, Annotation value) static AnnotationMap
of
(Collection<Annotation> rawAnnotations) int
size()
Returns number of annotation entries in this collection.toString()
-
Field Details
-
_annotations
-
-
Constructor Details
-
AnnotationMap
public AnnotationMap() -
AnnotationMap
-
-
Method Details
-
of
-
of
-
get
Description copied from interface:Annotations
Main access method used to find value for given annotation.- Specified by:
get
in interfaceAnnotations
-
has
- Specified by:
has
in interfaceAnnotations
-
hasOneOf
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.- Specified by:
hasOneOf
in interfaceAnnotations
-
annotations
-
merge
-
size
public int size()Description copied from interface:Annotations
Returns number of annotation entries in this collection.- Specified by:
size
in interfaceAnnotations
-
toString
-