public abstract class CircleStack<E> extends java.lang.Object implements IOrderedStack<E>
Constructor and Description |
---|
CircleStack(int argStackSize,
int argContainerSize) |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
newInstance()
Creates a new instance of the object contained by this stack.
|
E |
pop()
Returns the next object in the pool
|
E[] |
pop(int argNum)
Returns the next 'argNum' objects in the pool
in an array
|
void |
push(int argNum)
Tells the stack to take back the last 'argNum' items
|
public final E pop()
IOrderedStack
pop
in interface IOrderedStack<E>
public final E[] pop(int argNum)
IOrderedStack
pop
in interface IOrderedStack<E>
public void push(int argNum)
IOrderedStack
push
in interface IOrderedStack<E>
protected abstract E newInstance()
Copyright © 2017. All Rights Reserved.