Package net.jqwik.api.lifecycle
Interface ResolveParameterHook.ParameterSupplier
-
- Enclosing interface:
- ResolveParameterHook
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@API(status=EXPERIMENTAL, since="1.2.5") @FunctionalInterface public static interface ResolveParameterHook.ParameterSupplier
A functional interface specialized on providing parameters to property methods and to annotated lifecycle methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get(java.util.Optional<TryLifecycleContext> optionalTry)
Supply the requested parameter.
-
-
-
Method Detail
-
get
java.lang.Object get(java.util.Optional<TryLifecycleContext> optionalTry)
Supply the requested parameter. For the sameoptionalTry
the same object must be returned if this object has state that could change its behaviour.- Parameters:
optionalTry
- Contains a TryLifecycleContext instance if used to supply a property method's parameter. Otherwise it's empty.- Returns:
- the freshly generated object or one stored for the same context
-
-