Uses of Interface
com.google.gson.TypeAdapterFactory
-
Packages that use TypeAdapterFactory Package Description com.google.gson This package provides theGsonclass to convert Json to Java and vice-versa.com.google.gson.graph com.google.gson.interceptors 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 com.google.gson.internal.sql com.google.gson.typeadapters -
-
Uses of TypeAdapterFactory in com.google.gson
Fields in com.google.gson with type parameters of type TypeAdapterFactory Modifier and Type Field Description (package private) java.util.List<TypeAdapterFactory>Gson. builderFactories(package private) java.util.List<TypeAdapterFactory>Gson. builderHierarchyFactories(package private) java.util.List<TypeAdapterFactory>Gson. factoriesprivate java.util.List<TypeAdapterFactory>GsonBuilder. factoriesprivate java.util.List<TypeAdapterFactory>GsonBuilder. hierarchyFactoriestree-style hierarchy factories.Methods in com.google.gson with parameters of type TypeAdapterFactory Modifier and Type Method Description <T> TypeAdapter<T>Gson. getDelegateAdapter(TypeAdapterFactory skipPast, TypeToken<T> type)This method is used to get an alternate type adapter for the specified type.GsonBuilderGsonBuilder. registerTypeAdapterFactory(TypeAdapterFactory factory)Registers a factory for type adapters.Method parameters in com.google.gson with type arguments of type TypeAdapterFactory Modifier and Type Method Description private static voidGsonBuilder. addTypeAdaptersForDate(java.lang.String datePattern, int dateStyle, int timeStyle, java.util.List<TypeAdapterFactory> factories)Constructor parameters in com.google.gson with type arguments of type TypeAdapterFactory Constructor Description Gson(Excluder excluder, FieldNamingStrategy fieldNamingStrategy, java.util.Map<java.lang.reflect.Type,InstanceCreator<?>> instanceCreators, boolean serializeNulls, boolean complexMapKeySerialization, boolean generateNonExecutableGson, boolean htmlSafe, FormattingStyle formattingStyle, Strictness strictness, boolean serializeSpecialFloatingPointValues, boolean useJdkUnsafe, LongSerializationPolicy longSerializationPolicy, java.lang.String datePattern, int dateStyle, int timeStyle, java.util.List<TypeAdapterFactory> builderFactories, java.util.List<TypeAdapterFactory> builderHierarchyFactories, java.util.List<TypeAdapterFactory> factoriesToBeAdded, ToNumberStrategy objectToNumberStrategy, ToNumberStrategy numberToNumberStrategy, java.util.List<ReflectionAccessFilter> reflectionFilters) -
Uses of TypeAdapterFactory in com.google.gson.graph
Classes in com.google.gson.graph that implement TypeAdapterFactory Modifier and Type Class Description (package private) static classGraphAdapterBuilder.FactoryA factory that creates type adapters capable of serializing and deserializing object graphs. -
Uses of TypeAdapterFactory in com.google.gson.interceptors
Classes in com.google.gson.interceptors that implement TypeAdapterFactory Modifier and Type Class Description classInterceptorFactoryA type adapter factory that implements@Intercept. -
Uses of TypeAdapterFactory in com.google.gson.internal
Classes in com.google.gson.internal that implement TypeAdapterFactory Modifier and Type Class Description classExcluderThis 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 TypeAdapterFactory Modifier and Type Class Description classCollectionTypeAdapterFactoryAdapt a homogeneous collection of objects.classJsonAdapterAnnotationTypeAdapterFactoryGiven a type T, looks for the annotationJsonAdapterand uses an instance of the specified class as the default type adapter.private static classJsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactoryclassMapTypeAdapterFactoryAdapts maps to either JSON objects or JSON arrays.classReflectiveTypeAdapterFactoryType adapter that reflects over the fields and methods of a class.private static classTreeTypeAdapter.SingleTypeFactoryFields in com.google.gson.internal.bind with type parameters of type TypeAdapterFactory Modifier and Type Field Description private java.util.concurrent.ConcurrentMap<java.lang.Class<?>,TypeAdapterFactory>JsonAdapterAnnotationTypeAdapterFactory. adapterFactoryMapFor a class, if it is annotated with@JsonAdapterand refers to aTypeAdapterFactory, stores the factory instance in case it has been requested already.Methods in com.google.gson.internal.bind that return TypeAdapterFactory Modifier and Type Method Description TypeAdapterFactoryDefaultDateTypeAdapter.DateType. createAdapterFactory(int dateStyle, int timeStyle)TypeAdapterFactoryDefaultDateTypeAdapter.DateType. createAdapterFactory(java.lang.String datePattern)private TypeAdapterFactoryDefaultDateTypeAdapter.DateType. createFactory(DefaultDateTypeAdapter<T> adapter)static TypeAdapterFactoryNumberTypeAdapter. getFactory(ToNumberStrategy toNumberStrategy)static TypeAdapterFactoryObjectTypeAdapter. getFactory(ToNumberStrategy toNumberStrategy)private static TypeAdapterFactoryNumberTypeAdapter. newFactory(ToNumberStrategy toNumberStrategy)private static TypeAdapterFactoryObjectTypeAdapter. newFactory(ToNumberStrategy toNumberStrategy)static TypeAdapterFactoryTreeTypeAdapter. newFactory(TypeToken<?> exactType, java.lang.Object typeAdapter)Returns a new factory that will match each type againstexactType.static <TT> TypeAdapterFactoryTypeAdapters. newFactory(TypeToken<TT> type, TypeAdapter<TT> typeAdapter)static <TT> TypeAdapterFactoryTypeAdapters. newFactory(java.lang.Class<TT> type, TypeAdapter<TT> typeAdapter)static <TT> TypeAdapterFactoryTypeAdapters. newFactory(java.lang.Class<TT> unboxed, java.lang.Class<TT> boxed, TypeAdapter<? super TT> typeAdapter)static <TT> TypeAdapterFactoryTypeAdapters. newFactoryForMultipleTypes(java.lang.Class<TT> base, java.lang.Class<? extends TT> sub, TypeAdapter<? super TT> typeAdapter)static TypeAdapterFactoryTreeTypeAdapter. newFactoryWithMatchRawType(TypeToken<?> exactType, java.lang.Object typeAdapter)Returns a new factory that will match each type and its raw type againstexactType.static TypeAdapterFactoryTreeTypeAdapter. newTypeHierarchyFactory(java.lang.Class<?> hierarchyType, java.lang.Object typeAdapter)Returns a new factory that will match each type's raw type for assignability tohierarchyType.static <T1> TypeAdapterFactoryTypeAdapters. newTypeHierarchyFactory(java.lang.Class<T1> clazz, TypeAdapter<T1> typeAdapter)Returns a factory for all subtypes oftypeAdapter.private TypeAdapterFactoryJsonAdapterAnnotationTypeAdapterFactory. putFactoryAndGetCurrent(java.lang.Class<?> rawType, TypeAdapterFactory factory)Methods in com.google.gson.internal.bind with parameters of type TypeAdapterFactory Modifier and Type Method Description booleanJsonAdapterAnnotationTypeAdapterFactory. isClassJsonAdapterFactory(TypeToken<?> type, TypeAdapterFactory factory)Returns whetherfactoryis a type adapter factory created for@JsonAdapterplaced ontype.private TypeAdapterFactoryJsonAdapterAnnotationTypeAdapterFactory. putFactoryAndGetCurrent(java.lang.Class<?> rawType, TypeAdapterFactory factory)Constructors in com.google.gson.internal.bind with parameters of type TypeAdapterFactory Constructor Description TreeTypeAdapter(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 TypeAdapterFactory Modifier and Type Field Description static TypeAdapterFactorySqlTypesSupport. DATE_FACTORY(package private) static TypeAdapterFactorySqlDateTypeAdapter. FACTORY(package private) static TypeAdapterFactorySqlTimestampTypeAdapter. FACTORY(package private) static TypeAdapterFactorySqlTimeTypeAdapter. FACTORYstatic TypeAdapterFactorySqlTypesSupport. TIME_FACTORYstatic TypeAdapterFactorySqlTypesSupport. TIMESTAMP_FACTORY -
Uses of TypeAdapterFactory in com.google.gson.typeadapters
Classes in com.google.gson.typeadapters that implement TypeAdapterFactory Modifier and Type Class Description classPostConstructAdapterFactoryclassRuntimeTypeAdapterFactory<T>Adapts values whose runtime type may differ from their declaration type.
-