Package 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.Constructor.setAccessible(boolean)
will be used if the class and/or constructor is not visible.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.utils.Pool
Pool.Poolable
-
-
Constructor Summary
Constructors Constructor Description ReflectionPool(java.lang.Class<T> type)
ReflectionPool(java.lang.Class<T> type, int initialCapacity)
ReflectionPool(java.lang.Class<T> type, int initialCapacity, int max)
-