Class AnnotationCollector.TwoAnnotations
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector.TwoAnnotations
-
- All Implemented Interfaces:
Annotations
,Serializable
- Enclosing class:
- AnnotationCollector
public static class AnnotationCollector.TwoAnnotations extends Object implements Annotations, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwoAnnotations(Class<?> type1, Annotation value1, Class<?> type2, Annotation value2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Annotation>
Aget(Class<A> cls)
Main access method used to find value for given annotation.boolean
has(Class<?> cls)
boolean
hasOneOf(Class<? extends Annotation>[] annoClasses)
int
size()
Returns number of annotation entries in this collection.
-
-
-
Constructor Detail
-
TwoAnnotations
public TwoAnnotations(Class<?> type1, Annotation value1, Class<?> type2, Annotation value2)
-
-
Method Detail
-
get
public <A extends Annotation> A get(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(Class<?> cls)
- Specified by:
has
in interfaceAnnotations
-
hasOneOf
public boolean hasOneOf(Class<? extends 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
-
-