Java com.badlogic.gdx.utils Pool fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.utils Pool fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.utils Pool.

The text is from its open source code.

Subclass

com.badlogic.gdx.utils.Pool has subclasses.
Click this link to see all its subclasses.

Constructor

Pool(int initialCapacity)
Creates a pool with the specified initial capacity and no maximum.
Pool(int initialCapacity, int max)
Pool()
Creates a pool with an initial capacity of 16 and no maximum.

Method

voidclear()
Removes all free objects from this pool.
voidfree(T object)
Puts the specified object in the pool, making it eligible to be returned by #obtain() .
voidfreeAll(Array objects)
Puts the specified objects in the pool.
Tobtain()
Returns an object from this pool.