Uses of Interface
com.google.gson.TypeAdapterFactory
Packages that use TypeAdapterFactory
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 TypeAdapterFactory in com.google.gson
Fields in com.google.gson with type parameters of type TypeAdapterFactoryModifier and TypeFieldDescription(package private) final List
<TypeAdapterFactory> Gson.builderFactories
(package private) final List
<TypeAdapterFactory> (package private) final List
<TypeAdapterFactory> Gson.factories
private final List
<TypeAdapterFactory> GsonBuilder.factories
private final List
<TypeAdapterFactory> GsonBuilder.hierarchyFactories
tree-style hierarchy factories.Methods in com.google.gson with parameters of type TypeAdapterFactoryModifier and TypeMethodDescription<T> TypeAdapter
<T> Gson.getDelegateAdapter
(TypeAdapterFactory skipPast, TypeToken<T> type) This method is used to get an alternate type adapter for the specified type.GsonBuilder.registerTypeAdapterFactory
(TypeAdapterFactory factory) Registers a factory for type adapters.Method parameters in com.google.gson with type arguments of type TypeAdapterFactoryModifier and TypeMethodDescriptionprivate static void
GsonBuilder.addTypeAdaptersForDate
(String datePattern, int dateStyle, int timeStyle, List<TypeAdapterFactory> factories) Constructor parameters in com.google.gson with type arguments of type TypeAdapterFactoryModifierConstructorDescription(package private)
Gson
(Excluder excluder, FieldNamingStrategy fieldNamingStrategy, Map<Type, InstanceCreator<?>> instanceCreators, boolean serializeNulls, boolean complexMapKeySerialization, boolean generateNonExecutableGson, boolean htmlSafe, FormattingStyle formattingStyle, Strictness strictness, boolean serializeSpecialFloatingPointValues, boolean useJdkUnsafe, LongSerializationPolicy longSerializationPolicy, String datePattern, int dateStyle, int timeStyle, List<TypeAdapterFactory> builderFactories, List<TypeAdapterFactory> builderHierarchyFactories, List<TypeAdapterFactory> factoriesToBeAdded, ToNumberStrategy objectToNumberStrategy, ToNumberStrategy numberToNumberStrategy, List<ReflectionAccessFilter> reflectionFilters) -
Uses of TypeAdapterFactory in com.google.gson.graph
Classes in com.google.gson.graph that implement TypeAdapterFactory -
Uses of TypeAdapterFactory in com.google.gson.interceptors
Classes in com.google.gson.interceptors that implement TypeAdapterFactoryModifier and TypeClassDescriptionfinal class
A type adapter factory that implements@Intercept
. -
Uses of TypeAdapterFactory in com.google.gson.internal
Classes in com.google.gson.internal that implement TypeAdapterFactoryModifier and TypeClassDescriptionfinal class
This class selects which fields and types to omit. -
Uses of TypeAdapterFactory in com.google.gson.internal.bind
Classes in com.google.gson.internal.bind that implement TypeAdapterFactoryModifier and TypeClassDescriptionfinal class
Adapt a homogeneous collection of objects.final class
Given a type T, looks for the annotationJsonAdapter
and uses an instance of the specified class as the default type adapter.private static class
final class
Adapts maps to either JSON objects or JSON arrays.final class
Type adapter that reflects over the fields and methods of a class.private static final class
Fields in com.google.gson.internal.bind declared as TypeAdapterFactoryModifier and TypeFieldDescriptionstatic final TypeAdapterFactory
TypeAdapters.ATOMIC_BOOLEAN_FACTORY
static final TypeAdapterFactory
TypeAdapters.ATOMIC_INTEGER_ARRAY_FACTORY
static final TypeAdapterFactory
TypeAdapters.ATOMIC_INTEGER_FACTORY
static final TypeAdapterFactory
TypeAdapters.BIT_SET_FACTORY
static final TypeAdapterFactory
TypeAdapters.BOOLEAN_FACTORY
static final TypeAdapterFactory
TypeAdapters.BYTE_FACTORY
static final TypeAdapterFactory
TypeAdapters.CALENDAR_FACTORY
static final TypeAdapterFactory
TypeAdapters.CHARACTER_FACTORY
static final TypeAdapterFactory
TypeAdapters.CLASS_FACTORY
static final TypeAdapterFactory
TypeAdapters.CURRENCY_FACTORY
static final TypeAdapterFactory
DefaultDateTypeAdapter.DEFAULT_STYLE_FACTORY
Factory forDate
adapters which useDateFormat.DEFAULT
as style.private static final TypeAdapterFactory
ObjectTypeAdapter.DOUBLE_FACTORY
Gson default factory usingToNumberPolicy.DOUBLE
.static final TypeAdapterFactory
TypeAdapters.ENUM_FACTORY
static final TypeAdapterFactory
ArrayTypeAdapter.FACTORY
(package private) static final TypeAdapterFactory
EnumTypeAdapter.FACTORY
static final TypeAdapterFactory
TypeAdapters.INET_ADDRESS_FACTORY
static final TypeAdapterFactory
TypeAdapters.INTEGER_FACTORY
static final TypeAdapterFactory
TypeAdapters.JSON_ELEMENT_FACTORY
private static final TypeAdapterFactory
NumberTypeAdapter.LAZILY_PARSED_NUMBER_FACTORY
Gson default factory usingToNumberPolicy.LAZILY_PARSED_NUMBER
.static final TypeAdapterFactory
TypeAdapters.LOCALE_FACTORY
static final TypeAdapterFactory
TypeAdapters.SHORT_FACTORY
private final TypeAdapterFactory
TreeTypeAdapter.skipPastForGetDelegateAdapter
Only intended asskipPast
forGson.getDelegateAdapter(TypeAdapterFactory, TypeToken)
, must not be used in any other way.static final TypeAdapterFactory
TypeAdapters.STRING_BUFFER_FACTORY
static final TypeAdapterFactory
TypeAdapters.STRING_BUILDER_FACTORY
static final TypeAdapterFactory
TypeAdapters.STRING_FACTORY
private static final TypeAdapterFactory
JsonAdapterAnnotationTypeAdapterFactory.TREE_TYPE_CLASS_DUMMY_FACTORY
Factory used forTreeTypeAdapter
s created for@JsonAdapter
on a class.private static final TypeAdapterFactory
JsonAdapterAnnotationTypeAdapterFactory.TREE_TYPE_FIELD_DUMMY_FACTORY
Factory used forTreeTypeAdapter
s created for@JsonAdapter
on a field.static final TypeAdapterFactory
TypeAdapters.URI_FACTORY
static final TypeAdapterFactory
TypeAdapters.URL_FACTORY
static final TypeAdapterFactory
TypeAdapters.UUID_FACTORY
Fields in com.google.gson.internal.bind with type parameters of type TypeAdapterFactoryModifier and TypeFieldDescriptionprivate final ConcurrentMap
<Class<?>, TypeAdapterFactory> JsonAdapterAnnotationTypeAdapterFactory.adapterFactoryMap
For a class, if it is annotated with@JsonAdapter
and refers to aTypeAdapterFactory
, stores the factory instance in case it has been requested already.Methods in com.google.gson.internal.bind that return TypeAdapterFactoryModifier and TypeMethodDescriptionfinal TypeAdapterFactory
DefaultDateTypeAdapter.DateType.createAdapterFactory
(int dateStyle, int timeStyle) final TypeAdapterFactory
DefaultDateTypeAdapter.DateType.createAdapterFactory
(String datePattern) private TypeAdapterFactory
DefaultDateTypeAdapter.DateType.createFactory
(DefaultDateTypeAdapter<T> adapter) static TypeAdapterFactory
NumberTypeAdapter.getFactory
(ToNumberStrategy toNumberStrategy) static TypeAdapterFactory
ObjectTypeAdapter.getFactory
(ToNumberStrategy toNumberStrategy) private static TypeAdapterFactory
NumberTypeAdapter.newFactory
(ToNumberStrategy toNumberStrategy) private static TypeAdapterFactory
ObjectTypeAdapter.newFactory
(ToNumberStrategy toNumberStrategy) static TypeAdapterFactory
TreeTypeAdapter.newFactory
(TypeToken<?> exactType, Object typeAdapter) Returns a new factory that will match each type againstexactType
.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 TypeAdapterFactory
TreeTypeAdapter.newFactoryWithMatchRawType
(TypeToken<?> exactType, Object typeAdapter) Returns a new factory that will match each type and its raw type againstexactType
.static TypeAdapterFactory
TreeTypeAdapter.newTypeHierarchyFactory
(Class<?> hierarchyType, Object typeAdapter) Returns a new factory that will match each type's raw type for assignability tohierarchyType
.static <T1> TypeAdapterFactory
TypeAdapters.newTypeHierarchyFactory
(Class<T1> clazz, TypeAdapter<T1> typeAdapter) Returns a factory for all subtypes oftypeAdapter
.private TypeAdapterFactory
JsonAdapterAnnotationTypeAdapterFactory.putFactoryAndGetCurrent
(Class<?> rawType, TypeAdapterFactory factory) Methods in com.google.gson.internal.bind with parameters of type TypeAdapterFactoryModifier and TypeMethodDescriptionboolean
JsonAdapterAnnotationTypeAdapterFactory.isClassJsonAdapterFactory
(TypeToken<?> type, TypeAdapterFactory factory) Returns whetherfactory
is a type adapter factory created for@JsonAdapter
placed ontype
.private TypeAdapterFactory
JsonAdapterAnnotationTypeAdapterFactory.putFactoryAndGetCurrent
(Class<?> rawType, TypeAdapterFactory factory) Constructors in com.google.gson.internal.bind with parameters of type TypeAdapterFactoryModifierConstructorDescriptionTreeTypeAdapter
(JsonSerializer<T> serializer, JsonDeserializer<T> deserializer, Gson gson, TypeToken<T> typeToken, TypeAdapterFactory skipPast) TreeTypeAdapter
(JsonSerializer<T> serializer, JsonDeserializer<T> deserializer, Gson gson, TypeToken<T> typeToken, TypeAdapterFactory skipPast, boolean nullSafe) -
Uses of TypeAdapterFactory in com.google.gson.internal.sql
Fields in com.google.gson.internal.sql declared as TypeAdapterFactoryModifier and TypeFieldDescriptionstatic final TypeAdapterFactory
SqlTypesSupport.DATE_FACTORY
(package private) static final TypeAdapterFactory
SqlDateTypeAdapter.FACTORY
(package private) static final TypeAdapterFactory
SqlTimestampTypeAdapter.FACTORY
(package private) static final TypeAdapterFactory
SqlTimeTypeAdapter.FACTORY
static final TypeAdapterFactory
SqlTypesSupport.TIME_FACTORY
static final TypeAdapterFactory
SqlTypesSupport.TIMESTAMP_FACTORY
-
Uses of TypeAdapterFactory in com.google.gson.typeadapters
Classes in com.google.gson.typeadapters that implement TypeAdapterFactoryModifier and TypeClassDescriptionclass
final class
Adapts values whose runtime type may differ from their declaration type.