S
- the type of stateE
- the type of eventpublic interface StateMachineAccessor<S,E>
StateMachine
to allow more programmatic
access to underlying functionality. Functions prefixed "doWith" will expose
StateMachineAccess
via Consumer
for better functional
access with jdk8. Functions prefixed "with" is better suitable for lambdas.Modifier and Type | Method and Description |
---|---|
void |
doWithAllRegions(java.util.function.Consumer<StateMachineAccess<S,E>> stateMachineAccess)
Execute given function with all recursive regions.
|
void |
doWithRegion(java.util.function.Consumer<StateMachineAccess<S,E>> stateMachineAccess)
Execute given function with a region.
|
java.util.List<StateMachineAccess<S,E>> |
withAllRegions()
Gets all regions.
|
StateMachineAccess<S,E> |
withRegion()
Get a region.
|
void doWithAllRegions(java.util.function.Consumer<StateMachineAccess<S,E>> stateMachineAccess)
stateMachineAccess
- the state machine accessjava.util.List<StateMachineAccess<S,E>> withAllRegions()
void doWithRegion(java.util.function.Consumer<StateMachineAccess<S,E>> stateMachineAccess)
stateMachineAccess
- the state machine accessStateMachineAccess<S,E> withRegion()