Package com.github.joschi.jadconfig
Class TypeReference<T>
java.lang.Object
com.github.joschi.jadconfig.TypeReference<T>
- All Implemented Interfaces:
Comparable<TypeReference<T>>
References a generic type.
- Author:
- crazybob@google.com (Bob Lee)
- See Also:
-
Method Summary
-
Method Details
-
newInstance
public T newInstance() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationExceptionInstantiates a new instance ofTusing the default, no-arg constructor. -
getType
Gets the referenced type. -
compareTo
Dummy implementation to prevent constructing a reference without type information.- Specified by:
compareToin interfaceComparable<T>- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-