Package 

Class Pools.SimplePool

  • All Implemented Interfaces:
    tds.androidx.core.util.Pools.Pool

    
    public class Pools.SimplePool<T>
     implements Pools.Pool<T>
                        

    Simple (non-synchronized) pool of objects.

    • Constructor Summary

      Constructors 
      Constructor Description
      Pools.SimplePool(int maxPoolSize) Creates a new instance.
    • Method Summary

      Modifier and Type Method Description
      T acquire()
      boolean release(@NonNull() T instance) Release an instance to the pool.
      • Methods inherited from class java.lang.Object

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

      • Pools.SimplePool

        Pools.SimplePool(int maxPoolSize)
        Creates a new instance.
        Parameters:
        maxPoolSize - The max pool size.
    • Method Detail

      • release

         boolean release(@NonNull() T instance)

        Release an instance to the pool.

        Parameters:
        instance - The instance to release.