public final class TerminatingActionStateMachine<T> extends Object implements StateMachine<Boolean,T,Void>
| Modifier and Type | Method and Description |
|---|---|
Transition<Boolean,Void> |
apply(Boolean shouldContinue,
T item)
Apply the given input to the given state, returning a transition to a new state with 0 or more outputs.
|
Boolean |
getInitialState() |
boolean |
isTerminal(Boolean state)
Test whether a given state is terminal and stream traversal should stop.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, finish, runner, runnerWithpublic Transition<Boolean,Void> apply(Boolean shouldContinue, T item)
StateMachineapply in interface StateMachine<Boolean,T,Void>shouldContinue - The state to transition from.item - The input to apply to the state.public boolean isTerminal(Boolean state)
StateMachineisTerminal in interface StateMachine<Boolean,T,Void>state - The state to test.public Boolean getInitialState()
getInitialState in interface StateMachine<Boolean,T,Void>Copyright © 2020. All rights reserved.