Example usage for Java com.google.gson.reflect TypeToken fields, constructors, methods, implement or subclass
The text is from its open source code.
TypeToken() Constructs a new type literal. |
boolean | equals(Object o) |
TypeToken> | get(Type type) Gets type literal for the given Type instance. |
TypeToken | get(Class Gets type literal for the given Class instance. |
TypeToken> | getParameterized(Type rawType, Type... typeArguments) Gets type literal for the parameterized type represented by applying typeArguments to rawType . |
Class super T> | getRawType() Returns the raw (non-generic) type for this type. |
Type | getType() Gets underlying Type instance. |
boolean | isAssignableFrom(Class> cls) Check if this type is assignable from the given class object. |
boolean | isAssignableFrom(Type from) Check if this type is assignable from the given Type. |
boolean | isAssignableFrom(TypeToken> token) Check if this type is assignable from the given type token. |