com.badlogic.gdx.utils
Class ReflectionPool<T>

java.lang.Object
  extended by com.badlogic.gdx.utils.Pool<T>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.utils.Pool
Pool.Poolable
 
Field Summary
 
Fields inherited from class com.badlogic.gdx.utils.Pool
max, peak
 
Constructor Summary
ReflectionPool(Class<T> type)
           
ReflectionPool(Class<T> type, int initialCapacity)
           
ReflectionPool(Class<T> type, int initialCapacity, int max)
           
 
Method Summary
 
Methods inherited from class com.badlogic.gdx.utils.Pool
clear, free, freeAll, getFree, obtain
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.