public abstract class MutableStack<E>
- Object
- MutableStack
ImplementsIDynamicStack<E>
Constructors
public MutableStack(int argInitSize) |
Methods
public final E pop() | Pops an item off the stack |
public final void push(E argObject) | Pushes an item back on the stack |
protected abstract E newInstance() | Creates a new instance of the object contained by this stack. |
Inherited methods
Constructor details
MutableStack
public MutableStack(int argInitSize)Method details
pop
public final E pop()Pops an item off the stack
push
public final void push(E argObject)Pushes an item back on the stack
newInstance
protected abstract E newInstance()Creates a new instance of the object contained by this stack.