Package net.jqwik.api.stateful
Schnittstelle Action<S extends @Nullable Object>
- Typparameter:
S- Type of the state object
An action class represents a state change that can be preformed
on a stateful
S.
At runtime the execution of an action is regulated by a precondition.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault booleanprecondition(S state) If this method returns false, the action will not be performed.Perform an action on stateSand return the same state (if it has state) or a new one representing the new state.
-
Methodendetails
-
precondition
If this method returns false, the action will not be performed.- Parameter:
state- the current state- Gibt zurück:
- true if the precondition holds
-
run
Perform an action on stateSand return the same state (if it has state) or a new one representing the new state.- Parameter:
state- the current state- Gibt zurück:
- the new state, which may or may not be the same object
-