T - The type represented by this TypeToken.public abstract class TypeToken<T> extends Object
Type.
You can use this to create instances of Type for a type known at compile
time.
For example, to get the Type that represents List<String>:
Type listOfString = new TypeToken<List<String>>(){}.getType();| Modifier | Constructor and Description |
|---|---|
protected |
TypeToken()
Constructs a type token.
|
public Type getType()
Copyright © 2015. All Rights Reserved.