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 class
Functions.FunctionsFacade
static class
Functions.FunctionWrapper
-
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.
-
-
-
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
- iffunctionalType
is not a functional type
-
-