Class AnnotationCollector
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector
-
public abstract class AnnotationCollector extends Object
Helper class used to collect annotations to be stored asAnnotations
(likeAnnotationMap
).- Since:
- 2.9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationCollector.NoAnnotations
Immutable implementation for case where no annotations are associated with an annotatable entity.static class
AnnotationCollector.OneAnnotation
static class
AnnotationCollector.TwoAnnotations
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AnnotationCollector
addOrOverride(Annotation ann)
abstract AnnotationMap
asAnnotationMap()
abstract Annotations
asAnnotations()
static Annotations
emptyAnnotations()
static AnnotationCollector
emptyCollector()
static AnnotationCollector
emptyCollector(Object data)
Object
getData()
abstract boolean
isPresent(Annotation ann)
-
-
-
Method Detail
-
emptyAnnotations
public static Annotations emptyAnnotations()
-
emptyCollector
public static AnnotationCollector emptyCollector()
-
emptyCollector
public static AnnotationCollector emptyCollector(Object data)
-
asAnnotations
public abstract Annotations asAnnotations()
-
asAnnotationMap
public abstract AnnotationMap asAnnotationMap()
-
getData
public Object getData()
-
isPresent
public abstract boolean isPresent(Annotation ann)
-
addOrOverride
public abstract AnnotationCollector addOrOverride(Annotation ann)
-
-