public static class AnnotationCollector.OneAnnotation extends Object implements Annotations, Serializable
Constructor and Description |
---|
OneAnnotation(Class<?> type,
Annotation value) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
get(Class<A> cls)
Main access method used to find value for given annotation.
|
boolean |
has(Class<?> cls) |
boolean |
hasOneOf(Class<? extends Annotation>[] annoClasses) |
int |
size()
Returns number of annotation entries in this collection.
|
public OneAnnotation(Class<?> type, Annotation value)
public <A extends Annotation> A get(Class<A> cls)
Annotations
get
in interface Annotations
public boolean has(Class<?> cls)
has
in interface Annotations
public boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
hasOneOf
in interface Annotations
public int size()
Annotations
size
in interface Annotations
Copyright © 2008–2019 FasterXML. All rights reserved.