Class MutableStack<E>

java.lang.Object
org.jbox2d.pooling.normal.MutableStack<E>
All Implemented Interfaces:
DynamicStack<E>

public abstract class MutableStack<E> extends Object implements DynamicStack<E>
  • Constructor Details

    • MutableStack

      public MutableStack(int argInitSize)
  • Method Details

    • pop

      public final E pop()
      Description copied from interface: DynamicStack
      Pops an item off the stack
      Specified by:
      pop in interface DynamicStack<E>
    • push

      public final void push(E argObject)
      Description copied from interface: DynamicStack
      Pushes an item back on the stack
      Specified by:
      push in interface DynamicStack<E>
    • newInstance

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

      protected abstract E[] newArray(int size)