@FunctionalInterface public static interface Action.Independent<S> extends Action<S>
In addition to performing a state transformation the mutator function can also check or assert post-conditions and invariants that should hold when doing the transformation.
Action.JustMutate
,
Action.JustTransform
Action.Dependent<S>, Action.Independent<S>, Action.JustMutate<S>, Action.JustTransform<S>
Modifier and Type | Method and Description |
---|---|
Arbitrary<Transformer<S>> |
transformer()
Return an arbitrary for transformers that does not depend on the previous state.
|
Arbitrary<Transformer<S>> transformer()
In addition to performing a state transformation the transforming function can also check or assert post-conditions and invariants that should hold when doing the transformation.