Class AnnotationCollector.TwoAnnotations
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector.TwoAnnotations
-
- All Implemented Interfaces:
Annotations,java.io.Serializable
- Enclosing class:
- AnnotationCollector
public static class AnnotationCollector.TwoAnnotations extends java.lang.Object implements Annotations, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>_type1private java.lang.Class<?>_type2private java.lang.annotation.Annotation_value1private java.lang.annotation.Annotation_value2private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description TwoAnnotations(java.lang.Class<?> type1, java.lang.annotation.Annotation value1, java.lang.Class<?> type2, java.lang.annotation.Annotation value2)
-
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.booleanhas(java.lang.Class<?> cls)booleanhasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)intsize()Returns number of annotation entries in this collection.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_type1
private final java.lang.Class<?> _type1
-
_type2
private final java.lang.Class<?> _type2
-
_value1
private final java.lang.annotation.Annotation _value1
-
_value2
private final java.lang.annotation.Annotation _value2
-
-
Method Detail
-
get
public <A extends java.lang.annotation.Annotation> A get(java.lang.Class<A> cls)
Description copied from interface:AnnotationsMain access method used to find value for given annotation.- Specified by:
getin interfaceAnnotations
-
has
public boolean has(java.lang.Class<?> cls)
- Specified by:
hasin interfaceAnnotations
-
hasOneOf
public boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
- Specified by:
hasOneOfin interfaceAnnotations
-
size
public int size()
Description copied from interface:AnnotationsReturns number of annotation entries in this collection.- Specified by:
sizein interfaceAnnotations
-
-