private static class AutoPopulatingList.ReflectiveElementFactory<E> extends java.lang.Object implements AutoPopulatingList.ElementFactory<E>, java.io.Serializable
Class.getDeclaredConstructor().newInstance() on a given element class.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends E> |
elementClass |
| Constructor and Description |
|---|
ReflectiveElementFactory(java.lang.Class<? extends E> elementClass) |
| Modifier and Type | Method and Description |
|---|---|
E |
createElement(int index)
Create the element for the supplied index.
|
private final java.lang.Class<? extends E> elementClass
public ReflectiveElementFactory(java.lang.Class<? extends E> elementClass)
public E createElement(int index)
AutoPopulatingList.ElementFactorycreateElement in interface AutoPopulatingList.ElementFactory<E>