Uses of Interface
com.google.gson.ToNumberStrategy
-
Packages that use ToNumberStrategy Package Description com.google.gson This package provides theGson
class to convert Json to Java and vice-versa.com.google.gson.internal.bind -
-
Uses of ToNumberStrategy in com.google.gson
Classes in com.google.gson that implement ToNumberStrategy Modifier and Type Class Description class
ToNumberPolicy
An enumeration that defines two standard number reading strategies and a couple of strategies to overcome some historical Gson limitations while deserializing numbers asObject
andNumber
.Fields in com.google.gson declared as ToNumberStrategy Modifier and Type Field Description (package private) ToNumberStrategy
Gson. numberToNumberStrategy
private ToNumberStrategy
GsonBuilder. numberToNumberStrategy
(package private) ToNumberStrategy
Gson. objectToNumberStrategy
private ToNumberStrategy
GsonBuilder. objectToNumberStrategy
Methods in com.google.gson with parameters of type ToNumberStrategy Modifier and Type Method Description GsonBuilder
GsonBuilder. setNumberToNumberStrategy(ToNumberStrategy numberToNumberStrategy)
Configures Gson to apply a specific number strategy during deserialization ofNumber
.GsonBuilder
GsonBuilder. setObjectToNumberStrategy(ToNumberStrategy objectToNumberStrategy)
Configures Gson to apply a specific number strategy during deserialization ofObject
.Constructors in com.google.gson with parameters of type ToNumberStrategy Constructor Description Gson(Excluder excluder, FieldNamingStrategy fieldNamingStrategy, java.util.Map<java.lang.reflect.Type,InstanceCreator<?>> instanceCreators, boolean serializeNulls, boolean complexMapKeySerialization, boolean generateNonExecutableGson, boolean htmlSafe, boolean prettyPrinting, boolean lenient, boolean serializeSpecialFloatingPointValues, 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)
-
Uses of ToNumberStrategy in com.google.gson.internal.bind
Fields in com.google.gson.internal.bind declared as ToNumberStrategy Modifier and Type Field Description private ToNumberStrategy
NumberTypeAdapter. toNumberStrategy
private ToNumberStrategy
ObjectTypeAdapter. toNumberStrategy
Methods in com.google.gson.internal.bind with parameters of type ToNumberStrategy Modifier and Type Method Description 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)
Constructors in com.google.gson.internal.bind with parameters of type ToNumberStrategy Constructor Description NumberTypeAdapter(ToNumberStrategy toNumberStrategy)
ObjectTypeAdapter(Gson gson, ToNumberStrategy toNumberStrategy)
-