java.lang.Object
org.maxicp.state.datastructures.StateStack<E>
- Type Parameters:
E- the type of the elements in the stack
Generic Stack that can be saved and restored through
the
StateManager.saveState() / StateManager.restoreState()
methods.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StateStack
Creates a restorable stack.- Parameters:
sm- the state manager that saves/restores the stack whenStateManager.saveState()/StateManager.restoreState()methods are called.
-
-
Method Details
-
push
-
size
public int size() -
get
-