public final class AnnotationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
findAnnotation(Class<?> clazz,
Class<A> annotationType)
Finds an annotation in a class type hierarchy.
|
static <A extends Annotation> |
isAnnotationPresent(Class<?> clazz,
Class<A> annotationType)
Verifies if an annotation is present at a class type hierarchy.
|
public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotationType)
A - The annotation type.clazz - The class.annotationType - The annotation.public static <A extends Annotation> boolean isAnnotationPresent(Class<?> clazz, Class<A> annotationType)
A - The annotation type.clazz - The class.annotationType - The annotation.Copyright © 2013. All Rights Reserved.