public static class AnnotationCollector.OneAnnotation extends java.lang.Object implements Annotations, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
_type |
private java.lang.annotation.Annotation |
_value |
private static long |
serialVersionUID |
Constructor and Description |
---|
OneAnnotation(java.lang.Class<?> type,
java.lang.annotation.Annotation value) |
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<?> _type
private final java.lang.annotation.Annotation _value
public OneAnnotation(java.lang.Class<?> type, java.lang.annotation.Annotation value)
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