public abstract class TypeReference<T> extends Object implements Comparable<TypeReference<T>>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypeReference<T> obj)
Dummy implementation to prevent constructing a reference without type information.
|
boolean |
equals(Object obj) |
Type |
getType()
Gets the referenced type.
|
int |
hashCode() |
T |
newInstance()
Instantiates a new instance of
T using the default, no-arg
constructor. |
String |
toString() |
public T newInstance() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
T using the default, no-arg
constructor.public Type getType()
public int compareTo(TypeReference<T> obj)
compareTo in interface Comparable<TypeReference<T>>Copyright © 2022. All rights reserved.