Pools.SynchronizedPool

public static class Pools.SynchronizedPool
extends SimplePool<T>

java.lang.Object
   ↳ androidx.core.util.Pools.SimplePool<T>
     ↳ androidx.core.util.Pools.SynchronizedPool<T>


Synchronized) pool of objects.

Summary

Public constructors

SynchronizedPool(int maxPoolSize)

Creates a new instance.

Public methods

T acquire()
boolean release(T instance)

Release an instance to the pool.

Inherited methods

Public constructors

SynchronizedPool