Package com.prineside.tdi2.utils
Class DebugPool<T>
java.lang.Object
com.badlogic.gdx.utils.Pool<T>
com.prineside.tdi2.utils.DebugPool<T>
Should not be used in production (reflection access to a private field - its name will be changed by proguard)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.utils.Pool
Pool.Poolable -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPuts the specified object in the pool, making it eligible to be returned byPool.obtain().obtain()Returns an object from this pool.
-
Constructor Details
-
DebugPool
public DebugPool(int initialCapacity, int max)
-
-
Method Details
-
obtain
Description copied from class:com.badlogic.gdx.utils.PoolReturns an object from this pool. The object may be new (fromPool.newObject()) or reused (previouslyfreed). -
free
Description copied from class:com.badlogic.gdx.utils.PoolPuts the specified object in the pool, making it eligible to be returned byPool.obtain(). If the pool already containsPool.maxfree objects, the specified object isdiscarded, it is not reset and not added to the pool.The pool does not check if an object is already freed, so the same object must not be freed multiple times.
-