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)
Annotationsget in interface Annotationspublic boolean has(java.lang.Class<?> cls)
has in interface Annotationspublic boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
hasOneOf in interface Annotationspublic int size()
Annotationssize in interface Annotations