Java com.google.gson.reflect TypeToken fields, constructors, methods, implement or subclass

Example usage for Java com.google.gson.reflect TypeToken fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gson.reflect TypeToken.

The text is from its open source code.

Subclass

com.google.gson.reflect.TypeToken has subclasses.
Click this link to see all its subclasses.

Constructor

TypeToken()
Constructs a new type literal.

Method

booleanequals(Object o)
TypeTokenget(Type type)
Gets type literal for the given Type instance.
TypeTokenget(Class type)
Gets type literal for the given Class instance.
TypeTokengetParameterized(Type rawType, Type... typeArguments)
Gets type literal for the parameterized type represented by applying typeArguments to rawType .
ClassgetRawType()
Returns the raw (non-generic) type for this type.
TypegetType()
Gets underlying Type instance.
booleanisAssignableFrom(Class cls)
Check if this type is assignable from the given class object.
booleanisAssignableFrom(Type from)
Check if this type is assignable from the given Type.
booleanisAssignableFrom(TypeToken token)
Check if this type is assignable from the given type token.