Class AnnotationCollector.NoAnnotations
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector.NoAnnotations
-
- All Implemented Interfaces:
Annotations
,java.io.Serializable
- Enclosing class:
- AnnotationCollector
public static class AnnotationCollector.NoAnnotations extends java.lang.Object implements Annotations, java.io.Serializable
Immutable implementation for case where no annotations are associated with an annotatable entity.- Since:
- 2.9
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends java.lang.annotation.Annotation>
Aget(java.lang.Class<A> cls)
Main access method used to find value for given annotation.boolean
has(java.lang.Class<?> cls)
boolean
hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
int
size()
Returns number of annotation entries in this collection.
-
-
-
Method Detail
-
get
public <A extends java.lang.annotation.Annotation> A get(java.lang.Class<A> cls)
Description copied from interface:Annotations
Main access method used to find value for given annotation.- Specified by:
get
in interfaceAnnotations
-
has
public boolean has(java.lang.Class<?> cls)
- Specified by:
has
in interfaceAnnotations
-
hasOneOf
public boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
- Specified by:
hasOneOf
in interfaceAnnotations
-
size
public int size()
Description copied from interface:Annotations
Returns number of annotation entries in this collection.- Specified by:
size
in interfaceAnnotations
-
-