APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.utils

public Class ReflectionPool<T>

extends Pool<T>
Class Inheritance
Annotations
@Deprecated
Imports
com.badlogic.gdx.utils.reflect.ClassReflection, .Constructor, .ReflectionException

Deprecated

Please use DefaultPool instead.

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.

Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private final Constructor
Inherited from com.badlogic.gdx.utils.Pool:
maxpeak

Constructor Summary

AccessConstructor and Description
public
public
ReflectionPool(Class<T> type, int initialCapacity)

public
ReflectionPool(Class<T> type, int initialCapacity, int max)

Method Summary

Modifier and TypeMethod and Description
private Constructor
protected T
Inherited from com.badlogic.gdx.utils.Pool:
cleardiscardfillfreefreeAllgetFreeobtainreset

Field Detail

constructorback to summary
private final Constructor constructor

Constructor Detail

ReflectionPoolback to summary
public ReflectionPool(Class<T> type)
ReflectionPoolback to summary
public ReflectionPool(Class<T> type, int initialCapacity)
ReflectionPoolback to summary
public ReflectionPool(Class<T> type, int initialCapacity, int max)

Method Detail

findConstructorback to summary
private Constructor findConstructor(Class<T> type)
Annotations
@Null
newObjectback to summary
protected T newObject()

Implements abstract com.badlogic.gdx.utils.Pool.newObject.