com.badlogic.gdx.utils
Class ReflectionPool<T>
java.lang.Object
com.badlogic.gdx.utils.Pool<T>
com.badlogic.gdx.utils.ReflectionPool<T>
public class ReflectionPool<T>
- extends Pool<T>
Pool that creates new instances of a type using reflection. The type must have a zero argument constructor.
AccessibleObject.setAccessible(boolean)
will be used if the class and/or constructor is not visible.
- Author:
- Nathan Sweet
Nested classes/interfaces inherited from class com.badlogic.gdx.utils.Pool |
Pool.Poolable |
Fields inherited from class com.badlogic.gdx.utils.Pool |
max, peak |
ReflectionPool
public ReflectionPool(Class<T> type)
ReflectionPool
public ReflectionPool(Class<T> type,
int initialCapacity,
int max)
ReflectionPool
public ReflectionPool(Class<T> type,
int initialCapacity)
Copyright © 2013. All Rights Reserved.