public interface IOrderedStack<E>
Known subtypesCircleStack
This stack assumes that when you push ’n’ items back,
you’re pushing back the last ’n’ items popped.
Methods
public abstract E pop() | Returns the next object in the pool |
public abstract E[] pop(int argNum) | Returns the next ‘argNum’ objects in the pool in an array |
public abstract void push(int argNum) | Tells the stack to take back the last ‘argNum’ items |
Method details
pop
public abstract E pop()Returns the next object in the pool
pop
public abstract E[] pop(int argNum)Returns the next ‘argNum’ objects in the pool
in an array
Returns
an array containing the next pool objects in
items 0-argNum. Array length and uniqueness not
guaranteed.
push
public abstract void push(int argNum)Tells the stack to take back the last ‘argNum’ items