Package com.turtlequeue
Class StateMachine<T>
- java.lang.Object
-
- com.turtlequeue.StateMachine<T>
-
public class StateMachine<T> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckStateIs(T st, String desc)protected booleancompareAndSet(T prev, T next)protected TgetAndUpdateState(UnaryOperator<T> updater)protected TgetInternalState()protected StateMachine<T>setState(T st)
-
-
-
Method Detail
-
getInternalState
protected T getInternalState()
-
setState
protected StateMachine<T> setState(T st)
-
getAndUpdateState
protected T getAndUpdateState(UnaryOperator<T> updater)
-
-