S
- Type of the object to transform through an action@API(status=EXPERIMENTAL,
since="1.7.0")
public class ActionBuilder<S>
extends java.lang.Object
Alternatively you can subclass Action.JustTransform or Action.JustMutate.
For actions whose state transformation depends on the state, you have to provide implementations of either Action.Dependent or Action.Independent.
Modifier and Type | Method and Description |
---|---|
ActionBuilder<S> |
describeAs(java.lang.String description) |
Action.Independent<S> |
just(Transformer<S> transformer) |
Action.Independent<S> |
justMutate(java.util.function.Consumer<S> mutatingFunction) |
ActionBuilder<S> |
when(java.util.function.Predicate<S> precondition) |
public ActionBuilder<S> when(java.util.function.Predicate<S> precondition)
public ActionBuilder<S> describeAs(java.lang.String description)
public Action.Independent<S> just(Transformer<S> transformer)
public Action.Independent<S> justMutate(java.util.function.Consumer<S> mutatingFunction)