public class StateMachine<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkStateIs(T st,
String desc) |
protected boolean |
compareAndSet(T prev,
T next) |
protected T |
getAndUpdateState(UnaryOperator<T> updater) |
protected T |
getInternalState() |
protected StateMachine<T> |
setState(T st) |
protected T getInternalState()
protected StateMachine<T> setState(T st)
protected T getAndUpdateState(UnaryOperator<T> updater)
Copyright © 2019-2021, TurtleQueue All Rights Reserved. Use is subject to license terms.