Package net.jqwik.api
Class Functions
- java.lang.Object
-
- net.jqwik.api.Functions
-
@API(status=MAINTAINED, since="1.3.0") public class Functions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctions.FunctionsFacadestatic classFunctions.FunctionWrapperWraps a function to be generated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Functions.FunctionWrapperfunction(java.lang.Class<?> functionalType)Create a wrapper for functional types i.e. types marked FunctionalInterface or representing a SAM (single abstract method) type.
-
-
-
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- iffunctionalTypeis not a functional type
-
-