org.bushe.swing.event.generics
Class TypeReference<T>
java.lang.Object
org.bushe.swing.event.generics.TypeReference<T>
public abstract class TypeReference<T>
- extends java.lang.Object
Courtesy of Neil Gafter's blog.
Thanks to Curt Cox for the pointer.
Method Summary |
java.lang.reflect.Type |
getType()
Gets the referenced type. |
T |
newInstance()
Instantiates a new instance of T using the default, no-arg
constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeReference
protected TypeReference()
newInstance
public T newInstance()
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.InstantiationException
- Instantiates a new instance of
T
using the default, no-arg
constructor.
- Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
getType
public java.lang.reflect.Type getType()
- Gets the referenced type.