public static class AnnotationCollector.OneAnnotation extends java.lang.Object implements Annotations, java.io.Serializable
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.
|
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
Copyright © 2010 - 2020 Adobe. All Rights Reserved