public final class OverriddenMethodAnnotationSupport
extends java.lang.Object
| Constructor and Description |
|---|
OverriddenMethodAnnotationSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends java.lang.annotation.Annotation> |
findDeclaredOrInheritedAnnotation(java.lang.reflect.Method m,
java.lang.Class<A> t)
Returns the optional first element of the list returned by
getAnnotations, or null if the
list would be empty. |
public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findDeclaredOrInheritedAnnotation(java.lang.reflect.Method m,
java.lang.Class<A> t)
getAnnotations, or null if the
list would be empty.A - the type of the annotation to find.m - the method to begin the search from.t - the type of the annotation to find.m, or present on any methods which
m overrides.java.lang.NullPointerException - if any argument is null.