Package net.jqwik.engine.support
Klasse OverriddenMethodAnnotationSupport
java.lang.Object
net.jqwik.engine.support.OverriddenMethodAnnotationSupport
Adapted from https://stackoverflow.com/a/49164791/32352
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <A extends Annotation>
Optional<A> findDeclaredOrInheritedAnnotation(Method m, Class<A> t) Returns the optional first element of the list returned bygetAnnotations, ornullif the list would be empty.
-
Konstruktordetails
-
OverriddenMethodAnnotationSupport
public OverriddenMethodAnnotationSupport()
-
-
Methodendetails
-
findDeclaredOrInheritedAnnotation
public static <A extends Annotation> Optional<A> findDeclaredOrInheritedAnnotation(Method m, Class<A> t) Returns the optional first element of the list returned bygetAnnotations, ornullif the list would be empty.- Typparameter:
A- the type of the annotation to find.- Parameter:
m- the method to begin the search from.t- the type of the annotation to find.- Gibt zurück:
- optional of first annotation found of the specified type which
is present on
m, or present on any methods whichmoverrides. - Löst aus:
NullPointerException- if any argument isnull.
-