Klasse OverriddenMethodAnnotationSupport

java.lang.Object
net.jqwik.engine.support.OverriddenMethodAnnotationSupport

public final class OverriddenMethodAnnotationSupport extends Object
Adapted from https://stackoverflow.com/a/49164791/32352
  • 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 by getAnnotations, or null if 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 which m overrides.
      Löst aus:
      NullPointerException - if any argument is null.