public class

Pools.SimplePool<T>

extends java.lang.Object

implements Pools.Pool<java.lang.Object>

 java.lang.Object

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

Subclasses:

Pools.SynchronizedPool<T>

Overview

Simple (non-synchronized) pool of objects.

Summary

Constructors
publicSimplePool(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 SimplePool(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)