public static class AnnotationCollector.TwoAnnotations extends Object implements Annotations, Serializable
Constructor and Description |
---|
TwoAnnotations(Class<?> type1,
Annotation value1,
Class<?> type2,
Annotation value2) |
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 TwoAnnotations(Class<?> type1, Annotation value1, Class<?> type2, Annotation value2)
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–2020 FasterXML. All rights reserved.