Module tools.jackson.databind
Class AnnotationCollector.NoAnnotations
java.lang.Object
tools.jackson.databind.introspect.AnnotationCollector.NoAnnotations
- All Implemented Interfaces:
Serializable,Annotations
- Enclosing class:
- AnnotationCollector
public static class AnnotationCollector.NoAnnotations
extends Object
implements Annotations, Serializable
Immutable implementation for case where no annotations are associated with
an annotatable entity.
- Since:
- 2.9
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AMain access method used to find value for given annotation.booleanhas(Class<? extends Annotation> cls) booleanhasOneOf(Class<? extends Annotation>[] annoClasses) intsize()Returns number of annotation entries in this collection.values()Access method that returns a stream of all annotations contained.
-
Method Details
-
get
Description copied from interface:AnnotationsMain access method used to find value for given annotation.- Specified by:
getin interfaceAnnotations
-
has
- Specified by:
hasin interfaceAnnotations
-
hasOneOf
- Specified by:
hasOneOfin interfaceAnnotations
-
size
public int size()Description copied from interface:AnnotationsReturns number of annotation entries in this collection.- Specified by:
sizein interfaceAnnotations
-
values
Description copied from interface:AnnotationsAccess method that returns a stream of all annotations contained.- Specified by:
valuesin interfaceAnnotations
-