Class StateToolRegistration
-
- All Implemented Interfaces:
public final class StateToolRegistration<S extends Enum<S>>Registration for a tool in a specific state.
-
-
Method Summary
Modifier and Type Method Description final StateBuilder<S>build()Tool stays in current state after execution (no transition). final StateBuilder<S>transitionsTo(S targetState)Tool transitions to specified state after successful execution. final StateToolRegistration<S>withTool(Tool nextTool)Add another tool in the same state. final StateBuilder<S>inState(S nextState)Switch to configuring a different state. -
-
Method Detail
-
build
final StateBuilder<S> build()
Tool stays in current state after execution (no transition).
-
transitionsTo
final StateBuilder<S> transitionsTo(S targetState)
Tool transitions to specified state after successful execution.
-
withTool
final StateToolRegistration<S> withTool(Tool nextTool)
Add another tool in the same state.
-
inState
final StateBuilder<S> inState(S nextState)
Switch to configuring a different state.
-
-
-
-