Package com.prineside.tdi2.utils
Class DebugPool<T>
java.lang.Object
com.badlogic.gdx.utils.Pool<T>
com.prineside.tdi2.utils.DebugPool<T>
public abstract class DebugPool<T>
extends com.badlogic.gdx.utils.Pool<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
com.badlogic.gdx.utils.Pool.Poolable
-
Field Summary
Fields inherited from class com.badlogic.gdx.utils.Pool
max, peak
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.badlogic.gdx.utils.Pool
clear, fill, freeAll, getFree
-
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
).- Overrides:
obtain
in classcom.badlogic.gdx.utils.Pool<T>
-
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.
- Overrides:
free
in classcom.badlogic.gdx.utils.Pool<T>
-