public static class AnnotationCollector.TwoAnnotations extends java.lang.Object implements Annotations, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
_type1 |
private java.lang.Class<?> |
_type2 |
private java.lang.annotation.Annotation |
_value1 |
private java.lang.annotation.Annotation |
_value2 |
private static long |
serialVersionUID |
Constructor and Description |
---|
TwoAnnotations(java.lang.Class<?> type1,
java.lang.annotation.Annotation value1,
java.lang.Class<?> type2,
java.lang.annotation.Annotation value2) |
Modifier and Type | Method and Description |
---|---|
<A extends java.lang.annotation.Annotation> |
get(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.
|
private static final long serialVersionUID
private final java.lang.Class<?> _type1
private final java.lang.Class<?> _type2
private final java.lang.annotation.Annotation _value1
private final java.lang.annotation.Annotation _value2
public TwoAnnotations(java.lang.Class<?> type1, java.lang.annotation.Annotation value1, java.lang.Class<?> type2, java.lang.annotation.Annotation value2)
public <A extends java.lang.annotation.Annotation> A get(java.lang.Class<A> cls)
Annotations
get
in interface Annotations
public boolean has(java.lang.Class<?> cls)
has
in interface Annotations
public boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
hasOneOf
in interface Annotations
public int size()
Annotations
size
in interface Annotations