Interface TasksTUI.Action
- All Superinterfaces:
Function<TasksTUI.State,Result<TasksTUI.State>>
- Enclosing class:
- TasksTUI
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface TasksTUI.Action
extends Function<TasksTUI.State,Result<TasksTUI.State>>
Actions transform State → Result.
Success = new state, Failure = error message to display.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TasksTUI.ActionandThen(TasksTUI.Action next) Chain actions: if first succeeds, apply secondstatic TasksTUI.ActionAction from a Result-returning operationstatic TasksTUI.Actionof(UnaryOperator<TasksTUI.State> transform) Action that always succeeds with given state transform
-
Method Details
-
andThen
Chain actions: if first succeeds, apply second -
of
Action that always succeeds with given state transform -
fromResult
Action from a Result-returning operation
-