com.bulletphysics
Class ObjectStackList<T>

java.lang.Object
  extended by com.bulletphysics.StackList<T>
      extended by com.bulletphysics.ObjectStackList<T>

public class ObjectStackList<T>
extends StackList<T>

Stack-based object pool for arbitrary objects, returning not supported.


Constructor Summary
ObjectStackList(java.lang.Class<T> cls)
           
 
Method Summary
protected  void copy(T dest, T src)
          Copies data from one instance to another.
protected  T create()
          Creates a new instance of type.
 
Methods inherited from class com.bulletphysics.StackList
get, pop, push, returning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStackList

public ObjectStackList(java.lang.Class<T> cls)
Method Detail

create

protected T create()
Description copied from class: StackList
Creates a new instance of type.

Specified by:
create in class StackList<T>
Returns:
instance

copy

protected void copy(T dest,
                    T src)
Description copied from class: StackList
Copies data from one instance to another.

Specified by:
copy in class StackList<T>