Package org.jbox2d.pooling.normal
Class CircleStack<E>
java.lang.Object
org.jbox2d.pooling.normal.CircleStack<E>
- All Implemented Interfaces:
OrderedStack<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ECreates a new instance of the object contained by this stack.final Epop()Returns the next object in the poolfinal E[]pop(int argNum) Returns the next 'argNum' objects in the pool in an arrayvoidpush(int argNum) Tells the stack to take back the last 'argNum' items
-
Constructor Details
-
CircleStack
public CircleStack(int argStackSize, int argContainerSize)
-
-
Method Details
-
pop
Description copied from interface:OrderedStackReturns the next object in the pool- Specified by:
popin interfaceOrderedStack<E>
-
pop
Description copied from interface:OrderedStackReturns the next 'argNum' objects in the pool in an array- Specified by:
popin interfaceOrderedStack<E>- Returns:
- an array containing the next pool objects in items 0-argNum. Array length and uniqueness not guaranteed.
-
push
public void push(int argNum) Description copied from interface:OrderedStackTells the stack to take back the last 'argNum' items- Specified by:
pushin interfaceOrderedStack<E>
-
newInstance
Creates a new instance of the object contained by this stack.
-