AnnotationCollector.NoAnnotations
, AnnotationCollector.OneAnnotation
, AnnotationCollector.TwoAnnotations
, AnnotationMap
public interface Annotations
Standard mutable implementation is AnnotationMap
Modifier and Type | Method | 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.
|
<A extends Annotation> A get(Class<A> cls)
boolean has(Class<?> cls)
boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
int size()
Copyright © 2008–2018. All rights reserved.