Uses of Class
com.google.gson.TypeAdapter
-
Packages that use TypeAdapter Package Description com.google.gson This package provides theGson
class to convert Json to Java and vice-versa.com.google.gson.internal Do NOT use any class in this package as they are meant for internal use in Gson.com.google.gson.internal.bind -
-
Uses of TypeAdapter in com.google.gson
Methods in com.google.gson that return TypeAdapter Modifier and Type Method Description <T> TypeAdapter<T>
TypeAdapterFactory. create(Gson gson, TypeToken<T> type)
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. getAdapter(Class<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.TypeAdapter<T>
TypeAdapter. nullSafe()
This wrapper method is used to make a type adapter null tolerant. -
Uses of TypeAdapter in com.google.gson.internal
Methods in com.google.gson.internal that return TypeAdapter Modifier and Type Method Description <T> TypeAdapter<T>
Excluder. create(Gson gson, TypeToken<T> type)
-
Uses of TypeAdapter in com.google.gson.internal.bind
Subclasses of TypeAdapter in com.google.gson.internal.bind Modifier and Type Class Description class
ArrayTypeAdapter<E>
Adapt an array of objects.class
DateTypeAdapter
Adapter for Date.class
ObjectTypeAdapter
Adapts types whose static type is only 'Object'.static class
ReflectiveTypeAdapterFactory.Adapter<T>
class
SqlDateTypeAdapter
Adapter for java.sql.Date.class
TimeTypeAdapter
Adapter for Time.class
TreeTypeAdapter<T>
Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter.Methods in com.google.gson.internal.bind that return TypeAdapter Modifier and Type Method Description <T> TypeAdapter<T>
CollectionTypeAdapterFactory. create(Gson gson, TypeToken<T> typeToken)
<T> TypeAdapter<T>
JsonAdapterAnnotationTypeAdapterFactory. create(Gson gson, TypeToken<T> targetType)
<T> TypeAdapter<T>
MapTypeAdapterFactory. create(Gson gson, TypeToken<T> typeToken)
<T> TypeAdapter<T>
ReflectiveTypeAdapterFactory. create(Gson gson, TypeToken<T> type)
Methods in com.google.gson.internal.bind with parameters of type TypeAdapter Modifier and Type Method Description static <TT> TypeAdapterFactory
TypeAdapters. newFactory(TypeToken<TT> type, TypeAdapter<TT> typeAdapter)
static <TT> TypeAdapterFactory
TypeAdapters. newFactory(Class<TT> type, TypeAdapter<TT> typeAdapter)
static <TT> TypeAdapterFactory
TypeAdapters. newFactory(Class<TT> unboxed, Class<TT> boxed, TypeAdapter<? super TT> typeAdapter)
static <TT> TypeAdapterFactory
TypeAdapters. newFactoryForMultipleTypes(Class<TT> base, Class<? extends TT> sub, TypeAdapter<? super TT> typeAdapter)
static <T1> TypeAdapterFactory
TypeAdapters. newTypeHierarchyFactory(Class<T1> clazz, TypeAdapter<T1> typeAdapter)
Returns a factory for all subtypes oftypeAdapter
.Constructors in com.google.gson.internal.bind with parameters of type TypeAdapter Constructor Description ArrayTypeAdapter(Gson context, TypeAdapter<E> componentTypeAdapter, Class<E> componentType)
-