|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.utils.Pools
public class Pools
Stores a map of ReflectionPool
s by type for convenient static access.
Method Summary | ||
---|---|---|
static void |
free(java.lang.Object object)
Frees an object from the pool . |
|
static void |
freeAll(Array objects)
Frees the specified objects from the pool . |
|
static
|
get(java.lang.Class<T> type)
Returns a new or existing pool for the specified type, stored in a a Class to ReflectionPool map. |
|
static
|
obtain(java.lang.Class<T> type)
Obtains an object from the pool . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Pool<T> get(java.lang.Class<T> type)
ReflectionPool
map. The max size of
the pool used is 100.
public static <T> T obtain(java.lang.Class<T> type)
pool
.
public static void free(java.lang.Object object)
pool
.
public static void freeAll(Array objects)
pool
.
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |