Package com.ardor3d.math
Class ObjectPool<T extends Poolable>
java.lang.Object
com.ardor3d.math.ObjectPool<T>
- Type Parameters:
T
- the type.
Simple Object pool for use with our Math Library to help reduce object creation during calculations. This class uses
a ThreadLocal pool of objects to allow for fast multi-threaded use.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Poolable>
ObjectPool<T> final T
fetch()
protected abstract T
final void
-
Constructor Details
-
ObjectPool
protected ObjectPool(int maxSize)
-
-
Method Details
-
newInstance
-
fetch
-
release
-
create
-