public final class StateContext extends Object
| Constructor and Description |
|---|
StateContext() |
| Modifier and Type | Method and Description |
|---|---|
StateType |
getCurrentState()
Get current state.
|
void |
switchState(StateEvent event)
Switch state.
|
public void switchState(StateEvent event)
event - state eventpublic StateType getCurrentState()
Copyright © 2021 The Apache Software Foundation. All rights reserved.