public final class SubsetCheckingStateMachine<T> extends Object implements StateMachine<Set<T>,T,T>
| Modifier and Type | Method and Description |
|---|---|
Transition<Set<T>,T> |
apply(Set<T> state,
T element)
Apply the given input to the given state, returning a transition to a new state with 0 or more outputs.
|
Set<T> |
getInitialState() |
boolean |
isTerminal(Set<T> 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<Set<T>,T> apply(Set<T> state, T element)
StateMachinepublic boolean isTerminal(Set<T> state)
StateMachineisTerminal in interface StateMachine<Set<T>,T,T>state - The state to test.public Set<T> getInitialState()
getInitialState in interface StateMachine<Set<T>,T,T>Copyright © 2020. All rights reserved.