Package net.jqwik.api

Class Functions

java.lang.Object
net.jqwik.api.Functions

@API(status=MAINTAINED, since="1.3.0") public class Functions extends Object
  • Method Details

    • function

      public static Functions.FunctionWrapper function(Class<?> functionalType)
      Create a wrapper for functional types i.e. types marked FunctionalInterface or representing a SAM (single abstract method) type.
      Parameters:
      functionalType - The class object of the functional type to generate
      Returns:
      a new function wrapper instance
      Throws:
      JqwikException - if functionalType is not a functional type