public class AnnotationHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <A extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class<?> type)
Returns the annotation if it is present on the type or it is present on one of the type annotations.
|
static <A extends java.lang.annotation.Annotation> |
isPresent(java.lang.Class<A> annotationClass,
java.lang.Class<?> type)
Returns true if the annotation is present on the type or it is present on one of the type annotations.
|
public static <A extends java.lang.annotation.Annotation> A findAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class<?> type)
annotationClass - the annotation typetype - the typepublic static <A extends java.lang.annotation.Annotation> boolean isPresent(java.lang.Class<A> annotationClass,
java.lang.Class<?> type)
annotationClass - the annotation typetype - the type