public abstract class CircleStack<E>
- Object
- CircleStack
ImplementsIOrderedStack<E>
Constructors
public CircleStack(int argStackSize, int argContainerSize) |
Methods
public final E pop() | Returns the next object in the pool |
public final E[] pop(int argNum) | Returns the next ‘argNum’ objects in the pool in an array |
public void push(int argNum) | Tells the stack to take back the last ‘argNum’ items |
protected abstract E newInstance() | Creates a new instance of the object contained by this stack. |
Inherited methods
Constructor details
CircleStack
public CircleStack(int argStackSize, int argContainerSize)Method details
pop
public final E pop()Returns the next object in the pool
pop
public final 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 void push(int argNum)Tells the stack to take back the last ‘argNum’ items
newInstance
protected abstract E newInstance()Creates a new instance of the object contained by this stack.