Class MutableStack<E>
java.lang.Object
org.jbox2d.pooling.normal.MutableStack<E>
- All Implemented Interfaces:
IDynamicStack<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidextendStack(int argSize) protected abstract ECreates a new instance of the object contained by this stack.final Epop()Pops an item off the stackfinal voidPushes an item back on the stackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
stack
private java.lang.Object[] stack -
index
private int index -
size
private int size
-
-
Constructor Details
-
MutableStack
public MutableStack(int argInitSize)
-
-
Method Details
-
extendStack
private void extendStack(int argSize) -
pop
Description copied from interface:IDynamicStackPops an item off the stack- Specified by:
popin interfaceIDynamicStack<E>- Returns:
-
push
Description copied from interface:IDynamicStackPushes an item back on the stack- Specified by:
pushin interfaceIDynamicStack<E>- Parameters:
argObject-
-
newInstance
Creates a new instance of the object contained by this stack.
-