- Type Parameters:
T - the type
public abstract class TypeToken<T>
extends Object
A utility class for representing complex generic types.
-
Constructor Summary
Constructors
-
Method Summary
boolean
int
Creates a new type token from the given type.
Creates a new type token from the given type.
-
Constructor Details
-
TypeToken
protected TypeToken()
-
TypeToken
protected TypeToken(Type type)
-
Method Details
-
of
Creates a new type token from the given type.
-
of
Creates a new type token from the given type.
-
getType
public final Type getType()
-
getRawType
public final Class<?> getRawType()
-
-
-