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.
A functional interface specialized on providing parameters to property methods
and to annotated lifecycle methods.
-
Method Summary
Modifier and TypeMethodDescriptionget
(Optional<TryLifecycleContext> optionalTry) Supply the requested parameter.
-
Method Details
-
get
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
-