public class

Pools.SynchronizedPool<T>

extends Pools.SimplePool<java.lang.Object>

 java.lang.Object

androidx.core.util.Pools.SimplePool<java.lang.Object>

↳androidx.core.util.Pools.SynchronizedPool<T>

Overview

Synchronized) pool of objects.

Summary

Constructors
publicSynchronizedPool(int maxPoolSize)

Creates a new instance.

Methods
public java.lang.Objectacquire()

public booleanrelease(java.lang.Object instance)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public SynchronizedPool(int maxPoolSize)

Creates a new instance.

Parameters:

maxPoolSize: The max pool size.

Methods

public java.lang.Object acquire()

public boolean release(java.lang.Object instance)