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​(java.lang.Class<T> type)  
    SimplePool​(java.lang.Class<T> type, int initialCapacity)  
    SimplePool​(java.lang.Class<T> type, int initialCapacity, int max)  
  • Method Summary

    Modifier and Type Method Description
    protected T newObject()  

    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​(java.lang.Class<T> type)
    • SimplePool

      public SimplePool​(java.lang.Class<T> type, int initialCapacity)
    • SimplePool

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

    • newObject

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