Uses of Class
com.google.gson.TypeAdapter
Packages that use TypeAdapter
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.
-
Uses of TypeAdapter in com.google.gson
Subclasses of TypeAdapter in com.google.gsonFields in com.google.gson declared as TypeAdapterFields in com.google.gson with type parameters of type TypeAdapterModifier and TypeFieldDescriptionprivate final Map
<TypeToken<?>, TypeAdapter<?>> Gson.typeTokenCache
Methods in com.google.gson that return TypeAdapterModifier and TypeMethodDescriptionprivate static TypeAdapter
<AtomicLong> Gson.atomicLongAdapter
(TypeAdapter<Number> longAdapter) private static TypeAdapter
<AtomicLongArray> Gson.atomicLongArrayAdapter
(TypeAdapter<Number> longAdapter) <T> TypeAdapter
<T> Returns a type adapter fortype
, or null if this factory doesn't supporttype
.private TypeAdapter
<Number> Gson.doubleAdapter
(boolean serializeSpecialFloatingPointValues) private TypeAdapter
<Number> Gson.floatAdapter
(boolean serializeSpecialFloatingPointValues) <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.private static TypeAdapter
<Number> Gson.longAdapter
(LongSerializationPolicy longSerializationPolicy) final TypeAdapter
<T> TypeAdapter.nullSafe()
This wrapper method is used to make a type adapter null tolerant.Methods in com.google.gson with parameters of type TypeAdapterModifier and TypeMethodDescriptionprivate static TypeAdapter
<AtomicLong> Gson.atomicLongAdapter
(TypeAdapter<Number> longAdapter) private static TypeAdapter
<AtomicLongArray> Gson.atomicLongArrayAdapter
(TypeAdapter<Number> longAdapter) void
Gson.FutureTypeAdapter.setDelegate
(TypeAdapter<T> typeAdapter) -
Uses of TypeAdapter in com.google.gson.graph
Fields in com.google.gson.graph declared as TypeAdapterModifier and TypeFieldDescriptionprivate TypeAdapter
<T> GraphAdapterBuilder.Element.typeAdapter
This element's type adapter if known.Methods in com.google.gson.graph that return TypeAdapterConstructors in com.google.gson.graph with parameters of type TypeAdapterModifierConstructorDescription(package private)
Element
(T value, String id, TypeAdapter<T> typeAdapter, JsonElement element) -
Uses of TypeAdapter in com.google.gson.interceptors
Subclasses of TypeAdapter in com.google.gson.interceptorsModifier and TypeClassDescription(package private) static class
Fields in com.google.gson.interceptors declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter
<T> InterceptorFactory.InterceptorAdapter.delegate
Methods in com.google.gson.interceptors that return TypeAdapterConstructors in com.google.gson.interceptors with parameters of type TypeAdapter -
Uses of TypeAdapter in com.google.gson.internal
Methods in com.google.gson.internal that return TypeAdapter -
Uses of TypeAdapter in com.google.gson.internal.bind
Subclasses of TypeAdapter in com.google.gson.internal.bindModifier and TypeClassDescriptionfinal class
Adapt an array of objects.private static final class
final class
Adapter for Date.final class
DefaultDateTypeAdapter<T extends Date>
This type adapter supports subclasses of date by defining aDefaultDateTypeAdapter.DateType
and then using itscreateAdapterFactory
methods.private final class
final class
Type adapter forNumber
.final class
Adapts types whose static type is only 'Object'.static final class
final class
Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter.(package private) final class
private static final class
TypeAdapters.EnumTypeAdapter<T extends Enum<T>>
Fields in com.google.gson.internal.bind declared as TypeAdapterModifier and TypeFieldDescriptionstatic final TypeAdapter
<AtomicBoolean> TypeAdapters.ATOMIC_BOOLEAN
static final TypeAdapter
<AtomicInteger> TypeAdapters.ATOMIC_INTEGER
static final TypeAdapter
<AtomicIntegerArray> TypeAdapters.ATOMIC_INTEGER_ARRAY
static final TypeAdapter
<BigDecimal> TypeAdapters.BIG_DECIMAL
static final TypeAdapter
<BigInteger> TypeAdapters.BIG_INTEGER
static final TypeAdapter
<BitSet> TypeAdapters.BIT_SET
static final TypeAdapter
<Boolean> TypeAdapters.BOOLEAN
static final TypeAdapter
<Boolean> TypeAdapters.BOOLEAN_AS_STRING
Writes a boolean as a string.static final TypeAdapter
<Number> TypeAdapters.BYTE
static final TypeAdapter
<Calendar> TypeAdapters.CALENDAR
static final TypeAdapter
<Character> TypeAdapters.CHARACTER
static final TypeAdapter
<Class> TypeAdapters.CLASS
private final TypeAdapter
<E> ArrayTypeAdapter.componentTypeAdapter
static final TypeAdapter
<Currency> TypeAdapters.CURRENCY
private TypeAdapter
<T> TreeTypeAdapter.delegate
The delegate is lazily created because it may not be needed, and creating it may fail.private final TypeAdapter
<T> TypeAdapterRuntimeTypeWrapper.delegate
static final TypeAdapter
<Number> TypeAdapters.DOUBLE
private final TypeAdapter
<E> CollectionTypeAdapterFactory.Adapter.elementTypeAdapter
static final TypeAdapter
<Number> TypeAdapters.FLOAT
static final TypeAdapter
<InetAddress> TypeAdapters.INET_ADDRESS
static final TypeAdapter
<Number> TypeAdapters.INTEGER
static final TypeAdapter
<JsonElement> TypeAdapters.JSON_ELEMENT
private final TypeAdapter
<K> MapTypeAdapterFactory.Adapter.keyTypeAdapter
static final TypeAdapter
<Locale> TypeAdapters.LOCALE
static final TypeAdapter
<Number> TypeAdapters.LONG
static final TypeAdapter
<Number> TypeAdapters.SHORT
static final TypeAdapter
<String> TypeAdapters.STRING
static final TypeAdapter
<StringBuffer> TypeAdapters.STRING_BUFFER
static final TypeAdapter
<StringBuilder> TypeAdapters.STRING_BUILDER
static final TypeAdapter
<URI> TypeAdapters.URI
static final TypeAdapter
<URL> TypeAdapters.URL
static final TypeAdapter
<UUID> TypeAdapters.UUID
private final TypeAdapter
<V> MapTypeAdapterFactory.Adapter.valueTypeAdapter
Methods in com.google.gson.internal.bind that return TypeAdapterModifier and TypeMethodDescription<T> TypeAdapter
<T> <T> TypeAdapter
<T> <T> TypeAdapter
<T> <T> TypeAdapter
<T> <T> TypeAdapter
<T> private TypeAdapter
<T> TreeTypeAdapter.delegate()
private TypeAdapter
<?> MapTypeAdapterFactory.getKeyAdapter
(Gson context, Type keyType) Returns a type adapter that writes the value as a string.(package private) TypeAdapter
<?> JsonAdapterAnnotationTypeAdapterFactory.getTypeAdapter
(ConstructorConstructor constructorConstructor, Gson gson, TypeToken<?> type, JsonAdapter annotation) Methods in com.google.gson.internal.bind with parameters of type TypeAdapterModifier and TypeMethodDescriptionstatic <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 TypeAdapterModifierConstructorDescriptionAdapter
(Gson context, Type elementType, TypeAdapter<E> elementTypeAdapter, ObjectConstructor<? extends Collection<E>> constructor) Adapter
(Gson context, Type keyType, TypeAdapter<K> keyTypeAdapter, Type valueType, TypeAdapter<V> valueTypeAdapter, ObjectConstructor<? extends Map<K, V>> constructor) ArrayTypeAdapter
(Gson context, TypeAdapter<E> componentTypeAdapter, Class<E> componentType) (package private)
TypeAdapterRuntimeTypeWrapper
(Gson context, TypeAdapter<T> delegate, Type type) -
Uses of TypeAdapter in com.google.gson.internal.sql
Subclasses of TypeAdapter in com.google.gson.internal.sqlModifier and TypeClassDescription(package private) final class
Adapter for java.sql.Date.(package private) class
(package private) final class
Adapter for java.sql.Time.Fields in com.google.gson.internal.sql declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter
<Date> SqlTimestampTypeAdapter.dateTypeAdapter
Constructors in com.google.gson.internal.sql with parameters of type TypeAdapter -
Uses of TypeAdapter in com.google.gson.typeadapters
Subclasses of TypeAdapter in com.google.gson.typeadaptersModifier and TypeClassDescription(package private) static final class
final class
Fields in com.google.gson.typeadapters declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter
<T> PostConstructAdapterFactory.PostConstructAdapter.delegate
Methods in com.google.gson.typeadapters that return TypeAdapterConstructors in com.google.gson.typeadapters with parameters of type TypeAdapter