# Class OrderedStack<E>

java.lang.Object
com.codename1.gaming.physics.box2d.pooling.normal.OrderedStack<E>

public abstract class OrderedStack<E> extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OrderedStack(int argStackSize, int argContainerSize)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected abstract E`
  `newInstance()`
  Creates a new instance of the object contained by this stack.
  `final E`
  `pop()`
  `final E[]`
  `pop(int argNum)`
  `final void`
  `push(int argNum)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OrderedStack

    public OrderedStack(int argStackSize, int argContainerSize)

- ## Method Details

  - ### pop

    public final E pop()

  - ### pop

    public final E[] pop(int argNum)

  - ### push

    public final void push(int argNum)

  - ### newInstance

    protected abstract E newInstance()
    Creates a new instance of the object contained by this stack.