public class Annotations extends Object implements Iterable<Annotation>
AnnotatedElement.| Constructor and Description |
|---|
Annotations(AnnotatedElement annotatedElement) |
| Modifier and Type | Method and Description |
|---|---|
static Annotations |
annotations(AnnotatedElement annotatedElement) |
boolean |
contains(Class<? extends Annotation> type) |
<T extends Annotation> |
get(Class<T> type) |
Map<Class<? extends Annotation>,Annotation> |
getAnnotations() |
Iterator<Annotation> |
iterator() |
public Annotations(AnnotatedElement annotatedElement)
annotatedElement - must not be null.public static Annotations annotations(AnnotatedElement annotatedElement)
annotatedElement - must not be nullpublic boolean contains(Class<? extends Annotation> type)
type - must not be null.public <T extends Annotation> T get(Class<T> type)
type - must not be null.null.public Iterator<Annotation> iterator()
iterator in interface Iterable<Annotation>public Map<Class<? extends Annotation>,Annotation> getAnnotations()
Copyright © 2014–2015. All rights reserved.