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 TypeMethodDescriptionvoid
Puts 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.Pool
Returns an object from this pool. The object may be new (fromPool.newObject()
) or reused (previouslyfreed
). -
free
Description copied from class:com.badlogic.gdx.utils.Pool
Puts the specified object in the pool, making it eligible to be returned byPool.obtain()
. If the pool already containsPool.max
free 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.
-