Class MutableStack<E>

java.lang.Object
com.codename1.gaming.physics.box2d.pooling.normal.MutableStack<E>
All Implemented Interfaces:
IDynamicStack<E>

public abstract class MutableStack<E> extends Object implements IDynamicStack<E>
  • Constructor Summary

    Constructors
    Constructor
    Description
    MutableStack(int argInitSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract E
    Creates a new instance of the object contained by this stack.
    final E
    pop()
    Pops an item off the stack
    final void
    push(E argObject)
    Pushes an item back on the stack

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MutableStack

      public MutableStack(int argInitSize)
  • Method Details

    • pop

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

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

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