Package gaiasky.util

Class SimplePool<T>

java.lang.Object
com.badlogic.gdx.utils.Pool<T>
gaiasky.util.SimplePool<T>

public class SimplePool<T> extends com.badlogic.gdx.utils.Pool<T>
  • 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
    SimplePool​(Class<T> type)
     
    SimplePool​(Class<T> type, int initialCapacity)
     
    SimplePool​(Class<T> type, int initialCapacity, int max)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
     

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

    clear, discard, fill, free, freeAll, getFree, obtain, reset

    Methods inherited from class java.lang.Object

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

    • SimplePool

      public SimplePool(Class<T> type)
    • SimplePool

      public SimplePool(Class<T> type, int initialCapacity)
    • SimplePool

      public SimplePool(Class<T> type, int initialCapacity, int max)
  • Method Details

    • newObject

      protected T newObject()
      Specified by:
      newObject in class com.badlogic.gdx.utils.Pool<T>