Package zombie.util
Class Pool
java.lang.Object
zombie.util.Pool
public final class Pool
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Pool(java.util.function.Supplier supplier)
-
Method Summary
Modifier and Type Method Description IPooledObject
alloc()
void
release(IPooledObject iPooledObject)
static java.lang.Object
tryRelease(java.lang.Object object)
static IPooledObject
tryRelease(IPooledObject iPooledObject)
static IPooledObject[]
tryRelease(IPooledObject[] iPooledObjectArray)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Pool
public Pool(java.util.function.Supplier supplier)
-
-
Method Details
-
alloc
-
release
-
tryRelease
public static java.lang.Object tryRelease(java.lang.Object object) -
tryRelease
-
tryRelease
-