Uses of Class
com.google.gson.reflect.TypeToken
Packages that use TypeToken
Package
Description
This package provides the
Gson class to convert Json to Java and
vice-versa.Do NOT use any class in this package as they are meant for internal use in Gson.
This package provides utility classes for finding type information for generic types.
-
Uses of TypeToken in com.google.gson
Fields in com.google.gson declared as TypeTokenFields in com.google.gson with type parameters of type TypeTokenModifier and TypeFieldDescriptionprivate final ThreadLocal<Map<TypeToken<?>,Gson.FutureTypeAdapter<?>>> Gson.callsThis thread local guards against reentrant calls to getAdapter().private final Map<TypeToken<?>,TypeAdapter<?>> Gson.typeTokenCacheMethods in com.google.gson with parameters of type TypeTokenModifier and TypeMethodDescription<T> TypeAdapter<T>Returns a type adapter fortype, or null if this factory doesn't supporttype.<T> TypeAdapter<T>Gson.getAdapter(TypeToken<T> type) Returns the type adapter for type.<T> TypeAdapter<T>Gson.getDelegateAdapter(TypeAdapterFactory skipPast, TypeToken<T> type) This method is used to get an alternate type adapter for the specified type. -
Uses of TypeToken in com.google.gson.graph
Methods in com.google.gson.graph with parameters of type TypeToken -
Uses of TypeToken in com.google.gson.interceptors
Methods in com.google.gson.interceptors with parameters of type TypeToken -
Uses of TypeToken in com.google.gson.internal
Methods in com.google.gson.internal with parameters of type TypeToken -
Uses of TypeToken in com.google.gson.internal.bind
Fields in com.google.gson.internal.bind declared as TypeTokenModifier and TypeFieldDescriptionprivate final TypeToken<?>TreeTypeAdapter.SingleTypeFactory.exactTypeTreeTypeAdapter.typeTokenMethods in com.google.gson.internal.bind with parameters of type TypeTokenModifier and TypeMethodDescription<T> TypeAdapter<T><T> TypeAdapter<T><T> TypeAdapter<T><T> TypeAdapter<T><T> TypeAdapter<T>ReflectiveTypeAdapterFactory.createBoundField(Gson context, Field field, String name, TypeToken<?> fieldType, boolean serialize, boolean deserialize) ReflectiveTypeAdapterFactory.getBoundFields(Gson context, TypeToken<?> type, Class<?> raw) (package private) TypeAdapter<?>JsonAdapterAnnotationTypeAdapterFactory.getTypeAdapter(ConstructorConstructor constructorConstructor, Gson gson, TypeToken<?> type, JsonAdapter annotation) static TypeAdapterFactoryTreeTypeAdapter.newFactory(TypeToken<?> exactType, Object typeAdapter) Returns a new factory that will match each type againstexactType.static <TT> TypeAdapterFactoryTypeAdapters.newFactory(TypeToken<TT> type, TypeAdapter<TT> typeAdapter) static TypeAdapterFactoryTreeTypeAdapter.newFactoryWithMatchRawType(TypeToken<?> exactType, Object typeAdapter) Returns a new factory that will match each type and its raw type againstexactType.Constructors in com.google.gson.internal.bind with parameters of type TypeTokenModifierConstructorDescription(package private)SingleTypeFactory(Object typeAdapter, TypeToken<?> exactType, boolean matchRawType, Class<?> hierarchyType) TreeTypeAdapter(JsonSerializer<T> serializer, JsonDeserializer<T> deserializer, Gson gson, TypeToken<T> typeToken, TypeAdapterFactory skipPast) -
Uses of TypeToken in com.google.gson.reflect
Methods in com.google.gson.reflect that return TypeTokenModifier and TypeMethodDescriptionstatic <T> TypeToken<T>Gets type literal for the givenClassinstance.static TypeToken<?>Gets type literal for the givenTypeinstance.static TypeToken<?>Gets type literal for the array type whose elements are all instances ofcomponentType.static TypeToken<?>TypeToken.getParameterized(Type rawType, Type... typeArguments) Gets type literal for the parameterized type represented by applyingtypeArgumentstorawType.Methods in com.google.gson.reflect with parameters of type TypeTokenModifier and TypeMethodDescriptionbooleanTypeToken.isAssignableFrom(TypeToken<?> token) Deprecated.this implementation may be inconsistent with javac for types with wildcards. -
Uses of TypeToken in com.google.gson.typeadapters
Methods in com.google.gson.typeadapters with parameters of type TypeToken