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.gsonModifier and TypeClassDescription(package private) static classProxy type adapter for cyclic type graphs.private final classFields in com.google.gson declared as TypeAdapterFields in com.google.gson with type parameters of type TypeAdapterModifier and TypeFieldDescriptionprivate final ThreadLocal<Map<TypeToken<?>, TypeAdapter<?>>> This thread local guards against reentrant calls toGson.getAdapter(TypeToken).private final ConcurrentMap<TypeToken<?>, TypeAdapter<?>> Gson.typeTokenCacheMethods 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<T> Gson.FutureTypeAdapter.delegate()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 fortype.<T> TypeAdapter<T> Gson.getAdapter(Class<T> type) Returns the type adapter fortype.<T> TypeAdapter<T> Gson.getDelegateAdapter(TypeAdapterFactory skipPast, TypeToken<T> type) This method is used to get an alternate type adapter for the specified type.Gson.FutureTypeAdapter.getSerializationDelegate()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) voidGson.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.typeAdapterThis 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 classFields in com.google.gson.interceptors declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter<T> InterceptorFactory.InterceptorAdapter.delegateMethods 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 classAdapter for arrays.private static final classfinal classDefaultDateTypeAdapter<T extends Date>This type adapter supports subclasses of date by defining aDefaultDateTypeAdapter.DateTypeand then using itscreateAdapterFactorymethods.(package private) classEnumTypeAdapter<T extends Enum<T>>Adapter for enum classes (but not for the base classjava.lang.Enum).(package private) classAdapter forJsonElementand subclasses.private final classfinal classType adapter forNumber.final classAdapts types whose static type is only 'Object'.static classBase class for Adapters produced by this factory.private static final classprivate static final classclassType adapter which might delegate serialization to another adapter.final classAdapts a Gson 1.x tree-style adapter as a streaming TypeAdapter.(package private) final classFields in com.google.gson.internal.bind declared as TypeAdapterModifier and TypeFieldDescriptionstatic final TypeAdapter<AtomicBoolean> TypeAdapters.ATOMIC_BOOLEANstatic final TypeAdapter<AtomicInteger> TypeAdapters.ATOMIC_INTEGERstatic final TypeAdapter<AtomicIntegerArray> TypeAdapters.ATOMIC_INTEGER_ARRAYstatic final TypeAdapter<BigDecimal> TypeAdapters.BIG_DECIMALstatic final TypeAdapter<BigInteger> TypeAdapters.BIG_INTEGERstatic final TypeAdapter<BitSet> TypeAdapters.BIT_SETstatic final TypeAdapter<Boolean> TypeAdapters.BOOLEANstatic final TypeAdapter<Boolean> TypeAdapters.BOOLEAN_AS_STRINGWrites a boolean as a string.static final TypeAdapter<Number> TypeAdapters.BYTEstatic final TypeAdapter<Calendar> TypeAdapters.CALENDARstatic final TypeAdapter<Character> TypeAdapters.CHARACTERstatic final TypeAdapter<Class> TypeAdapters.CLASSprivate final TypeAdapter<E> ArrayTypeAdapter.componentTypeAdapterstatic final TypeAdapter<Currency> TypeAdapters.CURRENCYprivate TypeAdapter<T> TreeTypeAdapter.delegateThe delegate is lazily created because it may not be needed, and creating it may fail.private final TypeAdapter<T> TypeAdapterRuntimeTypeWrapper.delegatestatic final TypeAdapter<Number> TypeAdapters.DOUBLEprivate final TypeAdapter<E> CollectionTypeAdapterFactory.Adapter.elementTypeAdapterstatic final TypeAdapter<Number> TypeAdapters.FLOATstatic final TypeAdapter<InetAddress> TypeAdapters.INET_ADDRESSstatic final TypeAdapter<Number> TypeAdapters.INTEGERstatic final TypeAdapter<JsonElement> TypeAdapters.JSON_ELEMENTprivate final TypeAdapter<K> MapTypeAdapterFactory.Adapter.keyTypeAdapterstatic final TypeAdapter<LazilyParsedNumber> TypeAdapters.LAZILY_PARSED_NUMBERstatic final TypeAdapter<Locale> TypeAdapters.LOCALEstatic final TypeAdapter<Number> TypeAdapters.LONGstatic final TypeAdapter<Number> TypeAdapters.SHORTstatic final TypeAdapter<String> TypeAdapters.STRINGstatic final TypeAdapter<StringBuffer> TypeAdapters.STRING_BUFFERstatic final TypeAdapter<StringBuilder> TypeAdapters.STRING_BUILDERstatic final TypeAdapter<URI> TypeAdapters.URIstatic final TypeAdapter<URL> TypeAdapters.URLstatic final TypeAdapter<UUID> TypeAdapters.UUIDprivate final TypeAdapter<V> MapTypeAdapterFactory.Adapter.valueTypeAdapterMethods in com.google.gson.internal.bind that return TypeAdapterModifier and TypeMethodDescription<T> TypeAdapter<T> <T> TypeAdapter<T> <T> TypeAdapter<T> JsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactory.create(Gson gson, TypeToken<T> type) <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.abstract TypeAdapter<T> SerializationDelegatingTypeAdapter.getSerializationDelegate()Returns the adapter used for serialization, might bethisor another adapter.TreeTypeAdapter.getSerializationDelegate()Returns the type adapter which is used for serialization.(package private) TypeAdapter<?> JsonAdapterAnnotationTypeAdapterFactory.getTypeAdapter(ConstructorConstructor constructorConstructor, Gson gson, TypeToken<?> type, JsonAdapter annotation, boolean isClassAnnotation) Methods in com.google.gson.internal.bind with parameters of type TypeAdapterModifier and TypeMethodDescriptionprivate static booleanTypeAdapterRuntimeTypeWrapper.isReflective(TypeAdapter<?> typeAdapter) Returns whether the type adapter uses reflection.static <TT> TypeAdapterFactoryTypeAdapters.newFactory(TypeToken<TT> type, TypeAdapter<TT> typeAdapter) static <TT> TypeAdapterFactoryTypeAdapters.newFactory(Class<TT> type, TypeAdapter<TT> typeAdapter) static <TT> TypeAdapterFactoryTypeAdapters.newFactory(Class<TT> unboxed, Class<TT> boxed, TypeAdapter<? super TT> typeAdapter) static <TT> TypeAdapterFactoryTypeAdapters.newFactoryForMultipleTypes(Class<TT> base, Class<? extends TT> sub, TypeAdapter<? super TT> typeAdapter) static <T1> TypeAdapterFactoryTypeAdapters.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(TypeAdapter<E> elementTypeAdapter, ObjectConstructor<? extends Collection<E>> constructor) Adapter(TypeAdapter<K> keyTypeAdapter, 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 classAdapter for java.sql.Date.(package private) class(package private) final classAdapter for java.sql.Time.Fields in com.google.gson.internal.sql declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter<Date> SqlTimestampTypeAdapter.dateTypeAdapterConstructors 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 classfinal classFields in com.google.gson.typeadapters declared as TypeAdapterModifier and TypeFieldDescriptionprivate final TypeAdapter<T> PostConstructAdapterFactory.PostConstructAdapter.delegateMethods in com.google.gson.typeadapters that return TypeAdapterConstructors in com.google.gson.typeadapters with parameters of type TypeAdapter