Package net.jqwik.api

Class Functions


  • @API(status=MAINTAINED,
         since="1.3.0")
    public class Functions
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Functions.FunctionWrapper function​(java.lang.Class<?> functionalType)
      Create a wrapper for functional types i.e. types marked FunctionalInterface or representing a SAM (single abstract method) type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • function

        public static Functions.FunctionWrapper function​(java.lang.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