public class ReflectionArrayPool<T>
extends ArrayPool<T>
an ArrayPool that creates new arrays using reflection
- Since:
- 0.11.1
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
ReflectionArrayPool
public ReflectionArrayPool(Class<T> type,
int max,
int maxEach)
-
Method Details
-
newArray
protected T[] newArray(int length)
- Specified by:
newArray in class ArrayPool<T>
- Returns:
- a new array of the given length