public abstract class TypeReference<T> extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
TypeReference() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
TypeReference[] |
getInterfaces() |
TypeReference |
getSuperclass() |
Type |
getType() |
Class |
getTypeClass()
Gets the referenced type.
|
int |
hashCode() |
boolean |
isAssignableFrom(TypeReference<?> cls) |
<T> boolean |
isInstance(T t) |
boolean |
isInterface() |
T |
newInstance()
Instantiates a new instance of
T using the default, no-arg
constructor. |
static TypeReference |
of(Type type,
Type... args) |
String |
toString() |
public static TypeReference of(Type type, Type... args)
public T newInstance() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
T using the default, no-arg
constructor.public Class getTypeClass()
public Type getType()
public boolean isAssignableFrom(TypeReference<?> cls)
public boolean isInterface()
public TypeReference[] getInterfaces()
public TypeReference getSuperclass()
public <T> boolean isInstance(T t)
Copyright © 2021 vpc open source initiative. All rights reserved.