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
    Constructor
    Description
    DebugPool(int initialCapacity, int max)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    free(T object)
    Puts the specified object in the pool, making it eligible to be returned by Pool.obtain().
    Returns an object from this pool.

    Methods inherited from class com.badlogic.gdx.utils.Pool

    clear, fill, freeAll, getFree

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DebugPool

      public DebugPool(int initialCapacity, int max)
  • Method Details

    • obtain

      public T obtain()
      Description copied from class: com.badlogic.gdx.utils.Pool
      Returns an object from this pool. The object may be new (from Pool.newObject()) or reused (previously freed).
      Overrides:
      obtain in class com.badlogic.gdx.utils.Pool<T>
    • free

      public void free(T object)
      Description copied from class: com.badlogic.gdx.utils.Pool
      Puts the specified object in the pool, making it eligible to be returned by Pool.obtain(). If the pool already contains Pool.max free objects, the specified object is discarded, 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 class com.badlogic.gdx.utils.Pool<T>