Package org.jbox2d.pooling
Interface IOrderedStack<E>
-
- Type Parameters:
E-
- All Known Implementing Classes:
CircleStack
public interface IOrderedStack<E>This stack assumes that when you push 'n' items back, you're pushing back the last 'n' items popped.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Epop()Returns the next object in the poolE[]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
-
-
-
Method Detail
-
pop
E pop()
Returns the next object in the pool- Returns:
-
pop
E[] pop(int argNum)
Returns the next 'argNum' objects in the pool in an array- Parameters:
argNum-- Returns:
- an array containing the next pool objects in items 0-argNum. Array length and uniqueness not guaranteed.
-
push
void push(int argNum)
Tells the stack to take back the last 'argNum' items- Parameters:
argNum-
-
-