Package zombie.core.physics
Class ObjectPool
java.lang.Object
zombie.core.physics.ObjectPool
public class ObjectPool
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ObjectPool(java.lang.Class javaClass)
-
Method Summary
Modifier and Type Method Description static void
cleanCurrentThread()
java.lang.Object
get()
static ObjectPool
get(java.lang.Class javaClass)
void
release(java.lang.Object object)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectPool
public ObjectPool(java.lang.Class javaClass)
-
-
Method Details
-
get
public java.lang.Object get() -
release
public void release(java.lang.Object object) -
get
-
cleanCurrentThread
public static void cleanCurrentThread()
-