A B C D E F G H I J K L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AccessChecker() - Constructor for class com.google.gson.internal.ReflectionAccessFilterHelper.AccessChecker
- Adapter(ReflectiveTypeAdapterFactory.FieldsData) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
- Adapter(TypeAdapter<E>, ObjectConstructor<? extends Collection<E>>) - Constructor for class com.google.gson.internal.bind.CollectionTypeAdapterFactory.Adapter
- Adapter(TypeAdapter<K>, TypeAdapter<V>, ObjectConstructor<? extends Map<K, V>>) - Constructor for class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- ADAPTER - Static variable in class com.google.gson.internal.bind.JsonElementTypeAdapter
- adapterFactoryMap - Variable in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
-
For a class, if it is annotated with
@JsonAdapterand refers to aTypeAdapterFactory, stores the factory instance in case it has been requested already. - add(int, E) - Method in class com.google.gson.internal.NonNullElementWrapperList
- add(JsonElement) - Method in class com.google.gson.JsonArray
-
Adds the specified element to self.
- add(Boolean) - Method in class com.google.gson.JsonArray
-
Adds the specified boolean to self.
- add(Character) - Method in class com.google.gson.JsonArray
-
Adds the specified character to self.
- add(Number) - Method in class com.google.gson.JsonArray
-
Adds the specified number to self.
- add(String) - Method in class com.google.gson.JsonArray
-
Adds the specified string to self.
- add(String, JsonElement) - Method in class com.google.gson.JsonObject
-
Adds a member, which is a name-value pair, to self.
- addAll(JsonArray) - Method in class com.google.gson.JsonArray
-
Adds all the elements of the specified array to self.
- addDeserializationExclusionStrategy(ExclusionStrategy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply the passed in exclusion strategy during deserialization.
- addProperty(String, Boolean) - Method in class com.google.gson.JsonObject
-
Convenience method to add a boolean member.
- addProperty(String, Character) - Method in class com.google.gson.JsonObject
-
Convenience method to add a char member.
- addProperty(String, Number) - Method in class com.google.gson.JsonObject
-
Convenience method to add a number member.
- addProperty(String, String) - Method in class com.google.gson.JsonObject
-
Convenience method to add a string member.
- addReflectionAccessFilter(ReflectionAccessFilter) - Method in class com.google.gson.GsonBuilder
-
Adds a reflection access filter.
- addSerializationExclusionStrategy(ExclusionStrategy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply the passed in exclusion strategy during serialization.
- addType(Type) - Method in class com.google.gson.graph.GraphAdapterBuilder
-
Registers the specified type with a default instance creator.
- addType(Type, InstanceCreator<?>) - Method in class com.google.gson.graph.GraphAdapterBuilder
-
Registers the specified type with the provided instance creator.
- addTypeAdaptersForDate(String, int, int, List<TypeAdapterFactory>) - Static method in class com.google.gson.GsonBuilder
- ALLOW - com.google.gson.ReflectionAccessFilter.FilterResult
-
Reflection access for the class is allowed.
- allowNullValue - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- allowNullValues - Variable in class com.google.gson.internal.LinkedTreeMap
- alternate() - Method in annotation type com.google.gson.annotations.SerializedName
-
The alternative names of the field when it is deserialized
- alternateNames(Field) - Method in interface com.google.gson.FieldNamingStrategy
-
Returns alternative names for this field when it is being deserialized.
- alwaysCreatesValidJsonNumber(Class<? extends Number>) - Static method in class com.google.gson.stream.JsonWriter
-
Returns whether the
toString()ofcwill always return a valid JSON number. - append(CharSequence) - Method in class com.google.gson.internal.Streams.AppendableWriter
- append(CharSequence, int, int) - Method in class com.google.gson.internal.Streams.AppendableWriter
- appendable - Variable in class com.google.gson.internal.Streams.AppendableWriter
- AppendableWriter(Appendable) - Constructor for class com.google.gson.internal.Streams.AppendableWriter
- appendExecutableParameters(AccessibleObject, StringBuilder) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- arrayOf(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns an array type whose elements are all instances of
componentType. - ArrayTypeAdapter<E> - Class in com.google.gson.internal.bind
-
Adapter for arrays.
- ArrayTypeAdapter(Gson, TypeAdapter<E>, Class<E>) - Constructor for class com.google.gson.internal.bind.ArrayTypeAdapter
- asBigDecimal() - Method in class com.google.gson.internal.LazilyParsedNumber
- asList() - Method in class com.google.gson.JsonArray
-
Returns a mutable
Listview of thisJsonArray. - asMap() - Method in class com.google.gson.JsonObject
-
Returns a mutable
Mapview of thisJsonObject. - assertFullConsumption(Object, JsonReader) - Static method in class com.google.gson.Gson
- assertInstantiable(Class<?>) - Static method in class com.google.gson.internal.UnsafeAllocator
-
Asserts that the class is instantiable.
- ATOMIC_BOOLEAN - Static variable in class com.google.gson.internal.bind.TypeAdapters
- ATOMIC_BOOLEAN_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- ATOMIC_INTEGER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- ATOMIC_INTEGER_ARRAY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- ATOMIC_INTEGER_ARRAY_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- ATOMIC_INTEGER_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- atomicLongAdapter(TypeAdapter<Number>) - Static method in class com.google.gson.Gson
- atomicLongArrayAdapter(TypeAdapter<Number>) - Static method in class com.google.gson.Gson
B
- baseType - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- beforeName() - Method in class com.google.gson.stream.JsonWriter
-
Inserts any necessary separators and whitespace before a name.
- beforeValue() - Method in class com.google.gson.stream.JsonWriter
-
Inserts any necessary separators and whitespace before a literal value, inline array, or inline object.
- BEGIN_ARRAY - com.google.gson.stream.JsonToken
-
The opening of a JSON array.
- BEGIN_OBJECT - com.google.gson.stream.JsonToken
-
The opening of a JSON object.
- beginArray() - Method in class com.google.gson.internal.bind.JsonTreeReader
- beginArray() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- beginArray() - Method in class com.google.gson.stream.JsonReader
-
Consumes the next token from the JSON stream and asserts that it is the beginning of a new array.
- beginArray() - Method in class com.google.gson.stream.JsonWriter
-
Begins encoding a new array.
- beginObject() - Method in class com.google.gson.internal.bind.JsonTreeReader
- beginObject() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- beginObject() - Method in class com.google.gson.stream.JsonReader
-
Consumes the next token from the JSON stream and asserts that it is the beginning of a new object.
- beginObject() - Method in class com.google.gson.stream.JsonWriter
-
Begins encoding a new object.
- BIG_DECIMAL - com.google.gson.ToNumberPolicy
-
Using this policy will ensure that numbers will be read as numbers of arbitrary length using
BigDecimal. - BIG_DECIMAL - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BIG_INTEGER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BIT_SET - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BIT_SET_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BLOCK_ALL - com.google.gson.ReflectionAccessFilter.FilterResult
-
Blocks all reflection access for the class.
- BLOCK_ALL_ANDROID - Static variable in interface com.google.gson.ReflectionAccessFilter
-
Blocks all reflection access to members of standard Android classes.
- BLOCK_ALL_JAVA - Static variable in interface com.google.gson.ReflectionAccessFilter
-
Blocks all reflection access to members of standard Java classes.
- BLOCK_ALL_PLATFORM - Static variable in interface com.google.gson.ReflectionAccessFilter
-
Blocks all reflection access to members of classes belonging to programming language platforms, such as Java, Android, Kotlin or Scala.
- BLOCK_INACCESSIBLE - com.google.gson.ReflectionAccessFilter.FilterResult
-
Blocks reflection access if a member of the class is not accessible by default and would have to be made accessible.
- BLOCK_INACCESSIBLE_JAVA - Static variable in interface com.google.gson.ReflectionAccessFilter
-
Blocks all reflection access to members of standard Java classes which are not accessible by default.
- BOOLEAN - com.google.gson.stream.JsonToken
-
A JSON
trueorfalse. - BOOLEAN - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BOOLEAN_AS_STRING - Static variable in class com.google.gson.internal.bind.TypeAdapters
-
Writes a boolean as a string.
- BOOLEAN_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BoundField(String, Field) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
- buffer - Variable in class com.google.gson.stream.JsonReader
-
Use a manual buffer to easily read and unread upcoming characters, and also so we can create strings without an intermediate StringBuilder.
- BUFFER_SIZE - Static variable in class com.google.gson.stream.JsonReader
- builderFactories - Variable in class com.google.gson.Gson
- builderHierarchyFactories - Variable in class com.google.gson.Gson
- buildUnsupportedTypeException(Type, Class<?>...) - Static method in class com.google.gson.reflect.TypeToken
- BYTE - Static variable in class com.google.gson.internal.bind.TypeAdapters
- BYTE_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
C
- cachedString - Variable in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- CALENDAR - Static variable in class com.google.gson.internal.bind.TypeAdapters
- CALENDAR_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- canAccess(AccessibleObject, Object) - Method in class com.google.gson.internal.ReflectionAccessFilterHelper.AccessChecker
- canAccess(AccessibleObject, Object) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
-
See
AccessibleObject#canAccess(Object)(Java >= 9) - canonicalize(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns a type that is functionally equal but not necessarily equal according to
Object.equals(). - CHARACTER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- CHARACTER_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- charAt(int) - Method in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- chars - Variable in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- check(Class<?>) - Method in interface com.google.gson.ReflectionAccessFilter
-
Checks if reflection access should be allowed for a class.
- checkAccessible(Object, M) - Static method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- checkDateFormatStyle(int) - Static method in class com.google.gson.GsonBuilder
- checkInstantiable(Class<?>) - Static method in class com.google.gson.internal.ConstructorConstructor
-
Check if the class can be instantiated by Unsafe allocator.
- checkLenient() - Method in class com.google.gson.stream.JsonReader
- checkNotPrimitive(Type) - Static method in class com.google.gson.internal.GsonTypes
- checkNumberStringLength(String) - Static method in class com.google.gson.internal.NumberLimits
- checkOffset(String, int, char) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Check if the expected character exist at the given offset in the value.
- checkOffset(String, int, char) - Static method in class com.google.gson.typeadapters.UtcDateTypeAdapter
-
Check if the expected character exist at the given offset in the value.
- checkValidFloatingPoint(double) - Static method in class com.google.gson.Gson
- CLASS - Static variable in class com.google.gson.internal.bind.TypeAdapters
- CLASS_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- clear() - Method in class com.google.gson.internal.LinkedTreeMap
- clear() - Method in class com.google.gson.internal.LinkedTreeMap.EntrySet
- clear() - Method in class com.google.gson.internal.LinkedTreeMap.KeySet
- clear() - Method in class com.google.gson.internal.NonNullElementWrapperList
- clone() - Method in class com.google.gson.internal.Excluder
- close() - Method in class com.google.gson.internal.bind.JsonTreeReader
- close() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- close() - Method in class com.google.gson.internal.Streams.AppendableWriter
- close() - Method in class com.google.gson.stream.JsonReader
-
Closes this JSON reader and the underlying
Reader. - close() - Method in class com.google.gson.stream.JsonWriter
-
Flushes and closes this writer and the underlying
Writer. - CLOSED - Static variable in class com.google.gson.stream.JsonScope
-
A document that's been closed and cannot be accessed.
- closeScope(int, int, char) - Method in class com.google.gson.stream.JsonWriter
-
Closes the current scope by appending any necessary whitespace and the given bracket.
- CollectionTypeAdapterFactory - Class in com.google.gson.internal.bind
-
Adapt a homogeneous collection of objects.
- CollectionTypeAdapterFactory(ConstructorConstructor) - Constructor for class com.google.gson.internal.bind.CollectionTypeAdapterFactory
- CollectionTypeAdapterFactory.Adapter<E> - Class in com.google.gson.internal.bind
- com.google.gson - package com.google.gson
-
This package provides the
Gsonclass to convert Json to Java and vice-versa. - com.google.gson.annotations - package com.google.gson.annotations
-
This package provides annotations that can be used with
Gson. - com.google.gson.extras.examples.rawcollections - package com.google.gson.extras.examples.rawcollections
- com.google.gson.graph - package com.google.gson.graph
- com.google.gson.interceptors - package com.google.gson.interceptors
- com.google.gson.internal - package 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 - package com.google.gson.internal.bind
- com.google.gson.internal.bind.util - package com.google.gson.internal.bind.util
- com.google.gson.internal.reflect - package com.google.gson.internal.reflect
- com.google.gson.internal.sql - package com.google.gson.internal.sql
- com.google.gson.reflect - package com.google.gson.reflect
-
This package provides utility classes for finding type information for generic types.
- com.google.gson.stream - package com.google.gson.stream
-
This package provides classes for processing JSON in an efficient streaming way.
- com.google.gson.typeadapters - package com.google.gson.typeadapters
- COMPACT - Static variable in class com.google.gson.FormattingStyle
-
The default compact formatting style: no newline no indent no space after
','and':' - comparator - Variable in class com.google.gson.internal.LinkedTreeMap
- complexMapKeySerialization - Variable in class com.google.gson.Gson
- complexMapKeySerialization - Variable in class com.google.gson.GsonBuilder
- complexMapKeySerialization - Variable in class com.google.gson.internal.bind.MapTypeAdapterFactory
- componentIndices - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- componentType - Variable in class com.google.gson.internal.bind.ArrayTypeAdapter
- componentType - Variable in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- componentTypeAdapter - Variable in class com.google.gson.internal.bind.ArrayTypeAdapter
- constantToName - Variable in class com.google.gson.internal.bind.EnumTypeAdapter
- construct() - Method in interface com.google.gson.internal.ObjectConstructor
-
Returns a new instance.
- constructor - Variable in class com.google.gson.internal.bind.CollectionTypeAdapterFactory.Adapter
- constructor - Variable in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- constructor - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldReflectionAdapter
- constructor - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- constructorArgsDefaults - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- constructorConstructor - Variable in class com.google.gson.graph.GraphAdapterBuilder
- constructorConstructor - Variable in class com.google.gson.Gson
- constructorConstructor - Variable in class com.google.gson.internal.bind.CollectionTypeAdapterFactory
- constructorConstructor - Variable in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- constructorConstructor - Variable in class com.google.gson.internal.bind.MapTypeAdapterFactory
- constructorConstructor - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- ConstructorConstructor - Class in com.google.gson.internal
-
Returns a function that can construct an instance of a requested type.
- ConstructorConstructor(Map<Type, InstanceCreator<?>>, boolean, List<ReflectionAccessFilter>) - Constructor for class com.google.gson.internal.ConstructorConstructor
- constructorToString(Constructor<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Creates a string representation for a constructor.
- consumeNonExecutePrefix() - Method in class com.google.gson.stream.JsonReader
-
Consumes the non-execute prefix if it exists.
- contains(JsonElement) - Method in class com.google.gson.JsonArray
-
Returns true if this array contains the specified element.
- contains(Object) - Method in class com.google.gson.internal.LinkedTreeMap.EntrySet
- contains(Object) - Method in class com.google.gson.internal.LinkedTreeMap.KeySet
- contains(Object) - Method in class com.google.gson.internal.NonNullElementWrapperList
- containsKey(Object) - Method in class com.google.gson.internal.LinkedTreeMap
- context - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- context - Variable in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- create() - Method in class com.google.gson.GsonBuilder
-
Creates a
Gsoninstance based on the current configuration. - create() - Static method in class com.google.gson.internal.UnsafeAllocator
- create(Gson, TypeToken<R>) - Method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.graph.GraphAdapterBuilder.Factory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.interceptors.InterceptorFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.CollectionTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.MapTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- create(Gson, TypeToken<T>) - Method in class com.google.gson.internal.Excluder
- create(Gson, TypeToken<T>) - Method in interface com.google.gson.TypeAdapterFactory
-
Returns a type adapter for
type, or null if this factory doesn't supporttype. - create(Gson, TypeToken<T>) - Method in class com.google.gson.typeadapters.PostConstructAdapterFactory
- createAccumulator() - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
-
Create the Object that will be used to collect each field value
- createAccumulator() - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldReflectionAdapter
- createAccumulator() - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- createAdapter(ConstructorConstructor, Class<?>) - Static method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- createAdapterFactory(int, int) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- createAdapterFactory(String) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- createBoundField(Gson, Field, Method, String, TypeToken<?>, boolean, boolean) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- createDuplicateFieldException(Class<?>, String, Field, Field) - Static method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- createExceptionForRecordReflectionException(ReflectiveOperationException) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- createExceptionForUnexpectedIllegalAccess(IllegalAccessException) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- createFactory(DefaultDateTypeAdapter<T>) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- createInstance(Type) - Method in class com.google.gson.graph.GraphAdapterBuilder.Factory
-
Hook for the graph adapter to get a reference to a deserialized value before that value is fully populated.
- createInstance(Type) - Method in interface com.google.gson.InstanceCreator
-
Gson invokes this call-back method during deserialization to create an instance of the specified type.
- createUrl(String) - Static method in class com.google.gson.internal.TroubleshootingGuide
-
Creates a URL referring to the specified troubleshooting section.
- CURRENCY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- CURRENCY_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- currentWrite - Variable in class com.google.gson.internal.Streams.AppendableWriter
- CurrentWrite() - Constructor for class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
D
- DANGLING_NAME - Static variable in class com.google.gson.stream.JsonScope
-
An object whose most recent element is a key.
- DATE - Static variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- DATE_DATE_TYPE - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
- DATE_FACTORY - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
- dateClass - Variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- dateFormats - Variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter
-
List of 1 or more different date formats used for de-serialization attempts.
- datePattern - Variable in class com.google.gson.Gson
- datePattern - Variable in class com.google.gson.GsonBuilder
- dateStyle - Variable in class com.google.gson.Gson
- dateStyle - Variable in class com.google.gson.GsonBuilder
- dateType - Variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- DateType(Class<T>) - Constructor for class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- dateTypeAdapter - Variable in class com.google.gson.internal.sql.SqlTimestampTypeAdapter
- declaringClassOf(TypeVariable<?>) - Static method in class com.google.gson.internal.GsonTypes
-
Returns the declaring class of
typeVariable, ornullif it was not declared by a class. - deepCopy() - Method in class com.google.gson.JsonArray
-
Creates a deep copy of this element and all its children.
- deepCopy() - Method in class com.google.gson.JsonElement
-
Returns a deep copy of this element.
- deepCopy() - Method in class com.google.gson.JsonNull
-
Returns the same instance since it is an immutable value.
- deepCopy() - Method in class com.google.gson.JsonObject
-
Creates a deep copy of this element and all its children.
- deepCopy() - Method in class com.google.gson.JsonPrimitive
-
Returns the same value as primitives are immutable.
- DEFAULT - com.google.gson.LongSerializationPolicy
-
This is the "default" serialization policy that will output a
Longobject as a JSON number. - DEFAULT - Static variable in class com.google.gson.internal.Excluder
- DEFAULT_COMPLEX_MAP_KEYS - Static variable in class com.google.gson.Gson
- DEFAULT_DATE_PATTERN - Static variable in class com.google.gson.Gson
- DEFAULT_ESCAPE_HTML - Static variable in class com.google.gson.Gson
- DEFAULT_FIELD_NAMING_STRATEGY - Static variable in class com.google.gson.Gson
- DEFAULT_FORMATTING_STYLE - Static variable in class com.google.gson.Gson
- DEFAULT_JSON_NON_EXECUTABLE - Static variable in class com.google.gson.Gson
- DEFAULT_NESTING_LIMIT - Static variable in class com.google.gson.stream.JsonReader
- DEFAULT_NUMBER_TO_NUMBER_STRATEGY - Static variable in class com.google.gson.Gson
- DEFAULT_OBJECT_TO_NUMBER_STRATEGY - Static variable in class com.google.gson.Gson
- DEFAULT_SERIALIZE_NULLS - Static variable in class com.google.gson.Gson
- DEFAULT_SPECIALIZE_FLOAT_VALUES - Static variable in class com.google.gson.Gson
- DEFAULT_STRICTNESS - Static variable in class com.google.gson.Gson
- DEFAULT_STYLE_FACTORY - Static variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter
-
Factory for
Dateadapters which useDateFormat.DEFAULTas style. - DEFAULT_USE_JDK_UNSAFE - Static variable in class com.google.gson.Gson
- DefaultDateTypeAdapter<T extends java.util.Date> - Class in com.google.gson.internal.bind
-
This type adapter supports subclasses of date by defining a
DefaultDateTypeAdapter.DateTypeand then using itscreateAdapterFactorymethods. - DefaultDateTypeAdapter(DefaultDateTypeAdapter.DateType<T>, int, int) - Constructor for class com.google.gson.internal.bind.DefaultDateTypeAdapter
- DefaultDateTypeAdapter(DefaultDateTypeAdapter.DateType<T>, String) - Constructor for class com.google.gson.internal.bind.DefaultDateTypeAdapter
- DefaultDateTypeAdapter.DateType<T extends java.util.Date> - Class in com.google.gson.internal.bind
- deferredName - Variable in class com.google.gson.stream.JsonWriter
- delegate - Variable in class com.google.gson.Gson.FutureTypeAdapter
- delegate - Variable in class com.google.gson.interceptors.InterceptorFactory.InterceptorAdapter
- delegate - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
-
The delegate is lazily created because it may not be needed, and creating it may fail.
- delegate - Variable in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- delegate - Variable in class com.google.gson.internal.NonNullElementWrapperList
- delegate - Variable in class com.google.gson.typeadapters.PostConstructAdapterFactory.PostConstructAdapter
- delegate() - Method in class com.google.gson.Gson.FutureTypeAdapter
- delegate() - Method in class com.google.gson.internal.bind.TreeTypeAdapter
- deserializationStrategies - Variable in class com.google.gson.internal.Excluder
- deserialize() - Method in annotation type com.google.gson.annotations.Expose
-
If
true, the field marked with this annotation is deserialized from the JSON. - deserialize(JsonElement, Type) - Method in class com.google.gson.internal.bind.TreeTypeAdapter.GsonContextImpl
- deserialize(JsonElement, Type) - Method in interface com.google.gson.JsonDeserializationContext
-
Invokes default deserialization on the specified object.
- deserialize(JsonElement, Type, JsonDeserializationContext) - Method in interface com.google.gson.JsonDeserializer
-
Gson invokes this call-back method during deserialization when it encounters a field of the specified type.
- deserialize(Date) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter.DateType
- deserializedFields - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldsData
-
Maps from JSON member name to field
- deserializer - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- deserializer - Variable in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- deserializeToDate(JsonReader) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- determineMajorJavaVersion() - Static method in class com.google.gson.internal.JavaVersion
- disableHtmlEscaping() - Method in class com.google.gson.GsonBuilder
-
By default, Gson escapes HTML characters such as < > etc.
- disableInnerClassSerialization() - Method in class com.google.gson.GsonBuilder
-
Configures Gson to exclude inner classes (= non-
staticnested classes) during serialization and deserialization. - disableInnerClassSerialization() - Method in class com.google.gson.internal.Excluder
- disableJdkUnsafe() - Method in class com.google.gson.GsonBuilder
-
Disables usage of JDK's
sun.misc.Unsafe. - doPeek() - Method in class com.google.gson.stream.JsonReader
- DOUBLE - com.google.gson.ToNumberPolicy
-
Using this policy will ensure that numbers will be read as
Doublevalues. - DOUBLE - Static variable in class com.google.gson.internal.bind.TypeAdapters
- DOUBLE_FACTORY - Static variable in class com.google.gson.internal.bind.ObjectTypeAdapter
-
Gson default factory using
ToNumberPolicy.DOUBLE. - doubleAdapter(boolean) - Method in class com.google.gson.Gson
- doubleValue() - Method in class com.google.gson.internal.LazilyParsedNumber
- DummyTypeAdapterFactory() - Constructor for class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactory
E
- element - Variable in class com.google.gson.graph.GraphAdapterBuilder.Element
-
The element to deserialize.
- Element(T, String, TypeAdapter<T>, JsonElement) - Constructor for class com.google.gson.graph.GraphAdapterBuilder.Element
- elements - Variable in class com.google.gson.JsonArray
- elementTypeAdapter - Variable in class com.google.gson.internal.bind.CollectionTypeAdapterFactory.Adapter
- EMPTY - Static variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldsData
- EMPTY_ARRAY - Static variable in class com.google.gson.stream.JsonScope
-
An array with no elements requires no separator before the next element.
- EMPTY_DOCUMENT - Static variable in class com.google.gson.stream.JsonScope
-
No top-level value has been started yet.
- EMPTY_OBJECT - Static variable in class com.google.gson.stream.JsonScope
-
An object with no name/value pairs requires no separator before the next element.
- EMPTY_TYPE_ARRAY - Static variable in class com.google.gson.internal.GsonTypes
- enableComplexMapKeySerialization() - Method in class com.google.gson.GsonBuilder
-
Configures Gson to serialize
Mapobjects with complex keys as JSON arrays. - END_ARRAY - com.google.gson.stream.JsonToken
-
The closing of a JSON array.
- END_DOCUMENT - com.google.gson.stream.JsonToken
-
The end of the JSON stream.
- END_OBJECT - com.google.gson.stream.JsonToken
-
The closing of a JSON object.
- endArray() - Method in class com.google.gson.internal.bind.JsonTreeReader
- endArray() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- endArray() - Method in class com.google.gson.stream.JsonReader
-
Consumes the next token from the JSON stream and asserts that it is the end of the current array.
- endArray() - Method in class com.google.gson.stream.JsonWriter
-
Ends encoding the current array.
- endObject() - Method in class com.google.gson.internal.bind.JsonTreeReader
- endObject() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- endObject() - Method in class com.google.gson.stream.JsonReader
-
Consumes the next token from the JSON stream and asserts that it is the end of the current object.
- endObject() - Method in class com.google.gson.stream.JsonWriter
-
Ends encoding the current object.
- entrySet - Variable in class com.google.gson.internal.LinkedTreeMap
- entrySet() - Method in class com.google.gson.internal.LinkedTreeMap
- entrySet() - Method in class com.google.gson.JsonObject
-
Returns a set of members of this object.
- EntrySet() - Constructor for class com.google.gson.internal.LinkedTreeMap.EntrySet
- ENUM_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- EnumTypeAdapter<T extends java.lang.Enum<T>> - Class in com.google.gson.internal.bind
-
Adapter for enum classes (but not for the base class
java.lang.Enum). - EnumTypeAdapter(Class<T>) - Constructor for class com.google.gson.internal.bind.EnumTypeAdapter
- equal(Object, Object) - Static method in class com.google.gson.internal.GsonTypes
- equal(Object, Object) - Static method in class com.google.gson.internal.LinkedTreeMap
- equals(Object) - Method in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- equals(Object) - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- equals(Object) - Method in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- equals(Object) - Method in class com.google.gson.internal.LazilyParsedNumber
- equals(Object) - Method in class com.google.gson.internal.LinkedTreeMap.Node
- equals(Object) - Method in class com.google.gson.internal.NonNullElementWrapperList
- equals(Object) - Method in class com.google.gson.JsonArray
-
Returns whether the other object is equal to this.
- equals(Object) - Method in class com.google.gson.JsonNull
-
All instances of
JsonNullare considered equal. - equals(Object) - Method in class com.google.gson.JsonObject
-
Returns whether the other object is equal to this.
- equals(Object) - Method in class com.google.gson.JsonPrimitive
-
Returns whether the other object is equal to this.
- equals(Object) - Method in class com.google.gson.reflect.TypeToken
- equals(Type, Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns true if
aandbare equal. - escapeHtmlChars - Variable in class com.google.gson.GsonBuilder
- Event(String, String) - Constructor for class com.google.gson.extras.examples.rawcollections.RawCollectionsExample.Event
- exactType - Variable in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- excludeClass(Class<?>, boolean) - Method in class com.google.gson.internal.Excluder
- excludeField(Field, boolean) - Method in class com.google.gson.internal.Excluder
- excludeFieldsWithModifiers(int...) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to excludes all class fields that have the specified modifiers.
- excludeFieldsWithoutExposeAnnotation() - Method in class com.google.gson.GsonBuilder
-
Configures Gson to exclude all fields from consideration for serialization and deserialization that do not have the
Exposeannotation. - excludeFieldsWithoutExposeAnnotation() - Method in class com.google.gson.internal.Excluder
- excluder - Variable in class com.google.gson.Gson
- excluder - Variable in class com.google.gson.GsonBuilder
- excluder - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- excluder() - Method in class com.google.gson.Gson
-
Deprecated.This method by accident exposes an internal Gson class; it might be removed in a future version.
- Excluder - Class in com.google.gson.internal
-
This class selects which fields and types to omit.
- Excluder() - Constructor for class com.google.gson.internal.Excluder
- ExclusionStrategy - Interface in com.google.gson
-
A strategy (or policy) definition that is used to decide whether or not a field or class should be serialized or deserialized as part of the JSON output/input.
- expect(JsonToken) - Method in class com.google.gson.internal.bind.JsonTreeReader
- expectedModCount - Variable in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- Expose - Annotation Type in com.google.gson.annotations
-
An annotation that indicates this member should be exposed for JSON serialization or deserialization.
- extractBeginningInt(String) - Static method in class com.google.gson.internal.JavaVersion
F
- factories - Variable in class com.google.gson.Gson
- factories - Variable in class com.google.gson.GsonBuilder
- Factory(Map<Type, InstanceCreator<?>>) - Constructor for class com.google.gson.graph.GraphAdapterBuilder.Factory
- FACTORY - Static variable in class com.google.gson.internal.bind.ArrayTypeAdapter
- FACTORY - Static variable in class com.google.gson.internal.bind.EnumTypeAdapter
- FACTORY - Static variable in class com.google.gson.internal.sql.SqlDateTypeAdapter
- FACTORY - Static variable in class com.google.gson.internal.sql.SqlTimestampTypeAdapter
- FACTORY - Static variable in class com.google.gson.internal.sql.SqlTimeTypeAdapter
- field - Variable in class com.google.gson.FieldAttributes
- field - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
- FieldAttributes - Class in com.google.gson
-
A data object that stores attributes of a field.
- FieldAttributes(Field) - Constructor for class com.google.gson.FieldAttributes
-
Constructs a Field Attributes object from the
f. - fieldName - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
Name of the underlying field
- fieldNamingPolicy - Variable in class com.google.gson.GsonBuilder
- fieldNamingPolicy - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- FieldNamingPolicy - Enum in com.google.gson
-
An enumeration that defines a few standard naming conventions for JSON field names.
- FieldNamingPolicy() - Constructor for enum com.google.gson.FieldNamingPolicy
- fieldNamingStrategy - Variable in class com.google.gson.Gson
- fieldNamingStrategy() - Method in class com.google.gson.Gson
-
Returns the field naming strategy used by this Gson instance.
- FieldNamingStrategy - Interface in com.google.gson
-
A mechanism for providing custom field naming in Gson.
- FieldReflectionAdapter(ObjectConstructor<T>, ReflectiveTypeAdapterFactory.FieldsData) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldReflectionAdapter
- fieldsData - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
- FieldsData(Map<String, ReflectiveTypeAdapterFactory.BoundField>, List<ReflectiveTypeAdapterFactory.BoundField>) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldsData
- fieldToString(Field) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Creates a string representation for a field, omitting modifiers and the field type.
- fillBuffer(int) - Method in class com.google.gson.stream.JsonReader
-
Returns true once
limit - pos >= minimum. - FilterResult() - Constructor for enum com.google.gson.ReflectionAccessFilter.FilterResult
- finalize(A) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
-
Convert the accumulator to a final instance of T.
- finalize(Object[]) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- finalize(T) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldReflectionAdapter
- find(K, boolean) - Method in class com.google.gson.internal.LinkedTreeMap
-
Returns the node at or adjacent to the given key, creating it if requested.
- findByEntry(Map.Entry<?, ?>) - Method in class com.google.gson.internal.LinkedTreeMap
-
Returns this map's entry that has the same key and value as
entry, or null if this map has no such entry. - findByObject(Object) - Method in class com.google.gson.internal.LinkedTreeMap
- first() - Method in class com.google.gson.internal.LinkedTreeMap.Node
-
Returns the first node in this subtree.
- FLOAT - Static variable in class com.google.gson.internal.bind.TypeAdapters
- floatAdapter(boolean) - Method in class com.google.gson.Gson
- floatValue() - Method in class com.google.gson.internal.LazilyParsedNumber
- flush() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- flush() - Method in class com.google.gson.internal.Streams.AppendableWriter
- flush() - Method in class com.google.gson.stream.JsonWriter
-
Ensures all buffered data is written to the underlying
Writerand flushes that writer. - format - Variable in class com.google.gson.internal.sql.SqlDateTypeAdapter
- format - Variable in class com.google.gson.internal.sql.SqlTimeTypeAdapter
- format(Date) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Format a date into 'yyyy-MM-ddThh:mm:ssZ' (default timezone, no milliseconds precision)
- format(Date, boolean) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Format a date into 'yyyy-MM-ddThh:mm:ss[.sss]Z' (GMT timezone)
- format(Date, boolean, TimeZone) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Format date into yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]
- format(Date, boolean, TimeZone) - Static method in class com.google.gson.typeadapters.UtcDateTypeAdapter
-
Format date into yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]
- formattedColon - Variable in class com.google.gson.stream.JsonWriter
- formattedComma - Variable in class com.google.gson.stream.JsonWriter
- formattingStyle - Variable in class com.google.gson.Gson
- formattingStyle - Variable in class com.google.gson.GsonBuilder
- formattingStyle - Variable in class com.google.gson.stream.JsonWriter
- FormattingStyle - Class in com.google.gson
-
A class used to control what the serialization output looks like.
- FormattingStyle(String, String, boolean) - Constructor for class com.google.gson.FormattingStyle
- fromJson(JsonElement, TypeToken<T>) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified parse tree into an object of the specified type.
- fromJson(JsonElement, Class<T>) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified parse tree into an object of the specified type.
- fromJson(JsonElement, Type) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified parse tree into an object of the specified type.
- fromJson(JsonReader, TypeToken<T>) - Method in class com.google.gson.Gson
-
Reads the next JSON value from
readerand converts it to an object of typetypeOfT. - fromJson(JsonReader, Type) - Method in class com.google.gson.Gson
-
Reads the next JSON value from
readerand converts it to an object of typetypeOfT. - fromJson(Reader) - Method in class com.google.gson.TypeAdapter
-
Converts the JSON document in
into a Java object. - fromJson(Reader, TypeToken<T>) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified reader into an object of the specified type.
- fromJson(Reader, Class<T>) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified reader into an object of the specified class.
- fromJson(Reader, Type) - Method in class com.google.gson.Gson
-
This method deserializes the JSON read from the specified reader into an object of the specified type.
- fromJson(String) - Method in class com.google.gson.TypeAdapter
-
Converts the JSON document in
jsonto a Java object. - fromJson(String, TypeToken<T>) - Method in class com.google.gson.Gson
-
This method deserializes the specified JSON into an object of the specified type.
- fromJson(String, Class<T>) - Method in class com.google.gson.Gson
-
This method deserializes the specified JSON into an object of the specified class.
- fromJson(String, Type) - Method in class com.google.gson.Gson
-
This method deserializes the specified JSON into an object of the specified type.
- fromJsonTree(JsonElement) - Method in class com.google.gson.TypeAdapter
-
Converts
jsonTreeto a Java object. - FutureTypeAdapter() - Constructor for class com.google.gson.Gson.FutureTypeAdapter
G
- generateNonExecutableJson - Variable in class com.google.gson.Gson
- generateNonExecutableJson - Variable in class com.google.gson.GsonBuilder
- generateNonExecutableJson() - Method in class com.google.gson.GsonBuilder
-
Makes the output JSON non-executable in Javascript by prefixing the generated JSON with some special text.
- GenericArrayTypeImpl(Type) - Constructor for class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- get() - Method in class com.google.gson.internal.bind.JsonTreeWriter
-
Returns the top level object produced by this writer.
- get(int) - Method in class com.google.gson.internal.NonNullElementWrapperList
- get(int) - Method in class com.google.gson.JsonArray
-
Returns the i-th element of the array.
- get(TypeToken<T>) - Method in class com.google.gson.internal.ConstructorConstructor
-
Calls
ConstructorConstructor.get(TypeToken, boolean), and allows usage of JDK Unsafe. - get(TypeToken<T>, boolean) - Method in class com.google.gson.internal.ConstructorConstructor
-
Retrieves an object constructor for the given type.
- get(Class<T>) - Static method in class com.google.gson.reflect.TypeToken
-
Gets type literal for the given
Classinstance. - get(Object) - Method in class com.google.gson.internal.LinkedTreeMap
- get(Type) - Static method in class com.google.gson.reflect.TypeToken
-
Gets type literal for the given
Typeinstance. - get(String) - Method in class com.google.gson.JsonObject
-
Returns the member with the specified name.
- getAccessibleObjectDescription(AccessibleObject, boolean) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Returns a short string describing the
AccessibleObjectin a human-readable way. - getAccessor(Class<?>, Field) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Looks up the record accessor method that corresponds to the given record field
- getAccessor(Class<?>, Field) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordHelper
- getAccessor(Class<?>, Field) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordNotSupportedHelper
- getAccessor(Class<?>, Field) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getActualTypeArguments() - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- getAdapter(TypeToken<T>) - Method in class com.google.gson.Gson
-
Returns the type adapter for
type. - getAdapter(Class<T>) - Method in class com.google.gson.Gson
-
Returns the type adapter for
type. - getAnnotation(Class<?>) - Static method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- getAnnotation(Class<T>) - Method in class com.google.gson.FieldAttributes
-
Returns the
Tannotation object from this field if it exists; otherwise returnsnull. - getAnnotations() - Method in class com.google.gson.FieldAttributes
-
Returns the annotations that are present on this field.
- getArray(Type) - Static method in class com.google.gson.reflect.TypeToken
-
Gets type literal for the array type whose elements are all instances of
componentType. - getArrayComponentType(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns the component type of this array type.
- getAsBigDecimal() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a
BigDecimalif it contains a single element. - getAsBigDecimal() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
BigDecimal. - getAsBigDecimal() - Method in class com.google.gson.JsonPrimitive
- getAsBigInteger() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a
BigIntegerif it contains a single element. - getAsBigInteger() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
BigInteger. - getAsBigInteger() - Method in class com.google.gson.JsonPrimitive
- getAsBoolean() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a boolean if it contains a single element.
- getAsBoolean() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a boolean value.
- getAsBoolean() - Method in class com.google.gson.JsonPrimitive
-
Convenience method to get this element as a boolean value.
- getAsByte() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a primitive byte if it contains a single element.
- getAsByte() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive byte value.
- getAsByte() - Method in class com.google.gson.JsonPrimitive
- getAsCharacter() - Method in class com.google.gson.JsonArray
-
Deprecated.This method is misleading, as it does not get this element as a char but rather as a string's first character.
- getAsCharacter() - Method in class com.google.gson.JsonElement
-
Deprecated.This method is misleading, as it does not get this element as a char but rather as a string's first character.
- getAsCharacter() - Method in class com.google.gson.JsonPrimitive
-
Deprecated.This method is misleading, as it does not get this element as a char but rather as a string's first character.
- getAsDouble() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a double if it contains a single element.
- getAsDouble() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive double value.
- getAsDouble() - Method in class com.google.gson.JsonPrimitive
- getAsFloat() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a float if it contains a single element.
- getAsFloat() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive float value.
- getAsFloat() - Method in class com.google.gson.JsonPrimitive
- getAsInt() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as an integer if it contains a single element.
- getAsInt() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive integer value.
- getAsInt() - Method in class com.google.gson.JsonPrimitive
- getAsJsonArray() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
JsonArray. - getAsJsonArray(String) - Method in class com.google.gson.JsonObject
-
Convenience method to get the specified member as a
JsonArray. - getAsJsonNull() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
JsonNull. - getAsJsonObject() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
JsonObject. - getAsJsonObject(String) - Method in class com.google.gson.JsonObject
-
Convenience method to get the specified member as a
JsonObject. - getAsJsonPrimitive() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
JsonPrimitive. - getAsJsonPrimitive(String) - Method in class com.google.gson.JsonObject
-
Convenience method to get the specified member as a
JsonPrimitive. - getAsLong() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a long if it contains a single element.
- getAsLong() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive long value.
- getAsLong() - Method in class com.google.gson.JsonPrimitive
-
Convenience method to get this element as a primitive long.
- getAsNumber() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a
Numberif it contains a single element. - getAsNumber() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a
Number. - getAsNumber() - Method in class com.google.gson.JsonPrimitive
-
Convenience method to get this element as a
Number. - getAsShort() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a primitive short if it contains a single element.
- getAsShort() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a primitive short value.
- getAsShort() - Method in class com.google.gson.JsonPrimitive
- getAsSingleElement() - Method in class com.google.gson.JsonArray
- getAsString() - Method in class com.google.gson.JsonArray
-
Convenience method to get this array as a
Stringif it contains a single element. - getAsString() - Method in class com.google.gson.JsonElement
-
Convenience method to get this element as a string value.
- getAsString() - Method in class com.google.gson.JsonPrimitive
- getBoundFields(Gson, TypeToken<?>, Class<?>, boolean, boolean) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- getCanonicalRecordConstructor(Class<T>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- getCanonicalRecordConstructor(Class<T>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordHelper
- getCanonicalRecordConstructor(Class<T>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordNotSupportedHelper
- getCanonicalRecordConstructor(Class<T>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getCollectionElementType(Type, Class<?>) - Static method in class com.google.gson.internal.GsonTypes
-
Returns the element type of this collection type.
- getDatePartOfDateTimePattern(int) - Static method in class com.google.gson.internal.PreJava9DateFormatProvider
- getDeclaredClass() - Method in class com.google.gson.FieldAttributes
-
Returns the
Classobject that was declared for this field. - getDeclaredType() - Method in class com.google.gson.FieldAttributes
-
Returns the declared generic type of the field.
- getDeclaringClass() - Method in class com.google.gson.FieldAttributes
-
Gets the declaring Class that contains this field
- getDelegateAdapter(TypeAdapterFactory, TypeToken<T>) - Method in class com.google.gson.Gson
-
This method is used to get an alternate type adapter for the specified type.
- getFactory(ToNumberStrategy) - Static method in class com.google.gson.internal.bind.NumberTypeAdapter
- getFactory(ToNumberStrategy) - Static method in class com.google.gson.internal.bind.ObjectTypeAdapter
- getFieldNames(Field) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
-
first element holds the default name
- getFilterResult(List<ReflectionAccessFilter>, Class<?>) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
-
Gets the result of applying all filters until the first one returns a result other than
ReflectionAccessFilter.FilterResult.INDECISIVE, orReflectionAccessFilter.FilterResult.ALLOWif the list of filters is empty or all returnedINDECISIVE. - getFormattingStyle() - Method in class com.google.gson.stream.JsonWriter
-
Returns the pretty printing style used by this writer.
- getGenericComponentType() - Method in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- getGenericSupertype(Type, Class<?>, Class<?>) - Static method in class com.google.gson.internal.GsonTypes
-
Returns the generic supertype for
supertype. - getInaccessibleTroubleshootingSuffix(Exception) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- getIndent() - Method in class com.google.gson.FormattingStyle
-
Returns the string value that will be used as indent.
- getKey() - Method in class com.google.gson.internal.LinkedTreeMap.Node
- getKeyAdapter(Gson, Type) - Method in class com.google.gson.internal.bind.MapTypeAdapterFactory
-
Returns a type adapter that writes the value as a string.
- getLowerBounds() - Method in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- getMajorJavaVersion() - Static method in class com.google.gson.internal.JavaVersion
-
Gets the major Java version
- getMapKeyAndValueTypes(Type, Class<?>) - Static method in class com.google.gson.internal.GsonTypes
-
Returns a two element array containing this map's key and value types in positions 0 and 1 respectively.
- getName - Variable in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getName() - Method in class com.google.gson.FieldAttributes
-
Gets the name of the field
- getNestingLimit() - Method in class com.google.gson.stream.JsonReader
-
Returns the nesting limit of this reader.
- getNewline() - Method in class com.google.gson.FormattingStyle
-
Returns the string value that will be used as a newline.
- getOwnerType() - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- getParameterized(Type, Type...) - Static method in class com.google.gson.reflect.TypeToken
-
Gets a type literal for the parameterized type represented by applying
typeArgumentstorawType. - getPath() - Method in class com.google.gson.internal.bind.JsonTreeReader
- getPath() - Method in class com.google.gson.stream.JsonReader
-
Returns a JSONPath in dot-notation to the next (or current) location in the JSON document.
- getPath(boolean) - Method in class com.google.gson.internal.bind.JsonTreeReader
- getPath(boolean) - Method in class com.google.gson.stream.JsonReader
- getPreviousPath() - Method in class com.google.gson.internal.bind.JsonTreeReader
- getPreviousPath() - Method in class com.google.gson.stream.JsonReader
-
Returns a JSONPath in dot-notation to the previous (or current) location in the JSON document.
- getRawType() - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- getRawType() - Method in class com.google.gson.reflect.TypeToken
-
Returns the raw (non-generic) type for this type.
- getRawType(Type) - Static method in class com.google.gson.internal.GsonTypes
- getRecordComponentNames(Class<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- getRecordComponentNames(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordHelper
- getRecordComponentNames(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordNotSupportedHelper
- getRecordComponentNames(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getRecordComponents - Variable in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getRuntimeTypeIfMoreSpecific(Type, Object) - Static method in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
-
Finds a compatible runtime type if it is more specific
- getSerializationDelegate() - Method in class com.google.gson.Gson.FutureTypeAdapter
- getSerializationDelegate() - Method in class com.google.gson.internal.bind.SerializationDelegatingTypeAdapter
-
Returns the adapter used for serialization, might be
thisor another adapter. - getSerializationDelegate() - Method in class com.google.gson.internal.bind.TreeTypeAdapter
-
Returns the type adapter which is used for serialization.
- getSerializeNulls() - Method in class com.google.gson.stream.JsonWriter
-
Returns true if object members are serialized when their value is null.
- getStrictness() - Method in class com.google.gson.stream.JsonReader
-
Returns the strictness of this reader.
- getStrictness() - Method in class com.google.gson.stream.JsonWriter
-
Returns the strictness of this writer.
- getSupertype(Type, Class<?>, Class<?>) - Static method in class com.google.gson.internal.GsonTypes
-
Returns the generic form of
supertype. - getTimePartOfDateTimePattern(int) - Static method in class com.google.gson.internal.PreJava9DateFormatProvider
- getType - Variable in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- getType() - Method in class com.google.gson.reflect.TypeToken
-
Gets underlying
Typeinstance. - getTypeAdapter(ConstructorConstructor, Gson, TypeToken<?>, JsonAdapter, boolean) - Method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- getTypeTokenTypeArgument() - Method in class com.google.gson.reflect.TypeToken
-
Verifies that
thisis an instance of a direct subclass of TypeToken and returns the type argument forTincanonical form. - getUpperBounds() - Method in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- getUsDateTimeFormat(int, int) - Static method in class com.google.gson.internal.PreJava9DateFormatProvider
-
Returns the same DateFormat as
DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.US)in Java 8 or below. - getValue() - Method in class com.google.gson.internal.LinkedTreeMap.Node
- GMT_ID - Static variable in class com.google.gson.typeadapters.UtcDateTypeAdapter
- Graph(Map<Object, GraphAdapterBuilder.Element<?>>) - Constructor for class com.google.gson.graph.GraphAdapterBuilder.Graph
- GraphAdapterBuilder - Class in com.google.gson.graph
-
A builder for constructing a graph-aware type adapter.
- GraphAdapterBuilder() - Constructor for class com.google.gson.graph.GraphAdapterBuilder
- GraphAdapterBuilder.Element<T> - Class in com.google.gson.graph
-
An element of the graph during serialization or deserialization.
- GraphAdapterBuilder.Factory - Class in com.google.gson.graph
-
A factory that creates type adapters capable of serializing and deserializing object graphs.
- GraphAdapterBuilder.Graph - Class in com.google.gson.graph
- graphThreadLocal - Variable in class com.google.gson.graph.GraphAdapterBuilder.Factory
- gson - Variable in class com.google.gson.internal.bind.ObjectTypeAdapter
- gson - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- Gson - Class in com.google.gson
-
This is the main class for using Gson.
- Gson() - Constructor for class com.google.gson.Gson
-
Constructs a Gson object with default configuration.
- Gson(Excluder, FieldNamingStrategy, Map<Type, InstanceCreator<?>>, boolean, boolean, boolean, boolean, FormattingStyle, Strictness, boolean, boolean, LongSerializationPolicy, String, int, int, List<TypeAdapterFactory>, List<TypeAdapterFactory>, List<TypeAdapterFactory>, ToNumberStrategy, ToNumberStrategy, List<ReflectionAccessFilter>) - Constructor for class com.google.gson.Gson
- Gson.FutureTypeAdapter<T> - Class in com.google.gson
-
Proxy type adapter for cyclic type graphs.
- GsonBuildConfig - Class in com.google.gson.internal
-
Build configuration for Gson.
- GsonBuildConfig() - Constructor for class com.google.gson.internal.GsonBuildConfig
- GsonBuilder - Class in com.google.gson
-
Use this builder to construct a
Gsoninstance when you need to set configuration options other than the default. - GsonBuilder() - Constructor for class com.google.gson.GsonBuilder
-
Creates a GsonBuilder instance that can be used to build Gson with various configuration settings.
- GsonBuilder(Gson) - Constructor for class com.google.gson.GsonBuilder
-
Constructs a GsonBuilder instance from a Gson instance.
- GsonContextImpl() - Constructor for class com.google.gson.internal.bind.TreeTypeAdapter.GsonContextImpl
- GsonTypes - Class in com.google.gson.internal
-
Static methods for working with types.
- GsonTypes() - Constructor for class com.google.gson.internal.GsonTypes
- GsonTypes.GenericArrayTypeImpl - Class in com.google.gson.internal
- GsonTypes.ParameterizedTypeImpl - Class in com.google.gson.internal
- GsonTypes.WildcardTypeImpl - Class in com.google.gson.internal
-
The WildcardType interface supports multiple upper bounds and multiple lower bounds.
H
- has(String) - Method in class com.google.gson.JsonObject
-
Convenience method to check if a member with the specified name is present in this object.
- hashCode - Variable in class com.google.gson.reflect.TypeToken
- hashCode() - Method in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- hashCode() - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- hashCode() - Method in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- hashCode() - Method in class com.google.gson.internal.LazilyParsedNumber
- hashCode() - Method in class com.google.gson.internal.LinkedTreeMap.Node
- hashCode() - Method in class com.google.gson.internal.NonNullElementWrapperList
- hashCode() - Method in class com.google.gson.JsonArray
-
Returns the hash code of this array.
- hashCode() - Method in class com.google.gson.JsonNull
-
All instances of
JsonNullhave the same hash code since they are indistinguishable. - hashCode() - Method in class com.google.gson.JsonObject
-
Returns the hash code of this object.
- hashCode() - Method in class com.google.gson.JsonPrimitive
-
Returns the hash code of this object.
- hashCode() - Method in class com.google.gson.reflect.TypeToken
- hashCodeOrZero(Object) - Static method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- hasModifier(int) - Method in class com.google.gson.FieldAttributes
-
Returns
trueif the field is defined with themodifier. - hasNext() - Method in class com.google.gson.internal.bind.JsonTreeReader
- hasNext() - Method in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- hasNext() - Method in class com.google.gson.JsonStreamParser
-
Returns true if a
JsonElementis available on the input for consumption - hasNext() - Method in class com.google.gson.stream.JsonReader
-
Returns true if the current array or object has another element.
- hasNonOverridableAdapter(Type) - Static method in class com.google.gson.GsonBuilder
-
Whether the type has a built-in adapter which cannot be overridden.
- hasStringKeyType(Type) - Static method in class com.google.gson.internal.ConstructorConstructor
- header - Variable in class com.google.gson.internal.LinkedTreeMap
- height - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- hierarchyFactories - Variable in class com.google.gson.GsonBuilder
-
tree-style hierarchy factories.
- hierarchyType - Variable in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- HTML_SAFE_REPLACEMENT_CHARS - Static variable in class com.google.gson.stream.JsonWriter
- htmlSafe - Variable in class com.google.gson.Gson
- htmlSafe - Variable in class com.google.gson.stream.JsonWriter
- htmlSafe() - Method in class com.google.gson.Gson
-
Returns whether this Gson instance produces JSON output which is HTML-safe, that means all HTML characters are escaped.
I
- id - Variable in class com.google.gson.graph.GraphAdapterBuilder.Element
-
This element's name in the top level graph object.
- IDENTITY - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will ensure that the field name is unchanged.
- IGNORE_VERSIONS - Static variable in class com.google.gson.internal.Excluder
- in - Variable in class com.google.gson.stream.JsonReader
-
The input JSON.
- includeField(Field, boolean) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- INDECISIVE - com.google.gson.ReflectionAccessFilter.FilterResult
-
The filter is indecisive whether reflection access should be allowed.
- indent - Variable in class com.google.gson.FormattingStyle
- indexOf(Object) - Method in class com.google.gson.internal.NonNullElementWrapperList
- indexOf(Object[], Object) - Static method in class com.google.gson.internal.GsonTypes
- indexOfNonDigit(String, int) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Returns the index of the first character in the string that is not a digit, starting at offset.
- INET_ADDRESS - Static variable in class com.google.gson.internal.bind.TypeAdapters
- INET_ADDRESS_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- INSTANCE - Static variable in class com.google.gson.internal.JsonReaderInternalAccess
- INSTANCE - Static variable in class com.google.gson.internal.ReflectionAccessFilterHelper.AccessChecker
- INSTANCE - Static variable in class com.google.gson.internal.UnsafeAllocator
- INSTANCE - Static variable in class com.google.gson.JsonNull
-
Singleton for
JsonNull. - InstanceCreator<T> - Interface in com.google.gson
-
This interface is implemented to create instances of a class that does not define a no-args constructor.
- instanceCreators - Variable in class com.google.gson.graph.GraphAdapterBuilder.Factory
- instanceCreators - Variable in class com.google.gson.graph.GraphAdapterBuilder
- instanceCreators - Variable in class com.google.gson.Gson
- instanceCreators - Variable in class com.google.gson.GsonBuilder
- instanceCreators - Variable in class com.google.gson.internal.ConstructorConstructor
- INTEGER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- INTEGER_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- Intercept - Annotation Type in com.google.gson.interceptors
-
Use this annotation to indicate various interceptors for class instances after they have been processed by Gson.
- InterceptorAdapter(TypeAdapter<T>, Intercept) - Constructor for class com.google.gson.interceptors.InterceptorFactory.InterceptorAdapter
- InterceptorFactory - Class in com.google.gson.interceptors
-
A type adapter factory that implements
@Intercept. - InterceptorFactory() - Constructor for class com.google.gson.interceptors.InterceptorFactory
- InterceptorFactory.InterceptorAdapter<T> - Class in com.google.gson.interceptors
- intValue() - Method in class com.google.gson.internal.LazilyParsedNumber
- isAndroidType(Class<?>) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
- isAndroidType(String) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
- isAnonymousOrNonStaticLocal(Class<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Returns whether the class is anonymous or a non-static local class.
- isAnyPlatformType(Class<?>) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
- isAssignableFrom(TypeToken<?>) - Method in class com.google.gson.reflect.TypeToken
-
Deprecated.this implementation may be inconsistent with javac for types with wildcards.
- isAssignableFrom(Class<?>) - Method in class com.google.gson.reflect.TypeToken
-
Deprecated.this implementation may be inconsistent with javac for types with wildcards.
- isAssignableFrom(Type) - Method in class com.google.gson.reflect.TypeToken
-
Deprecated.this implementation may be inconsistent with javac for types with wildcards.
- isAssignableFrom(Type, GenericArrayType) - Static method in class com.google.gson.reflect.TypeToken
-
Private helper function that performs some assignability checks for the provided GenericArrayType.
- isAssignableFrom(Type, ParameterizedType, Map<String, Type>) - Static method in class com.google.gson.reflect.TypeToken
-
Private recursive helper function to actually do the type-safe checking of assignability.
- isBoolean() - Method in class com.google.gson.JsonPrimitive
-
Check whether this primitive contains a boolean value.
- isCapturingTypeVariablesForbidden() - Static method in class com.google.gson.reflect.TypeToken
- isClassJsonAdapterFactory(TypeToken<?>, TypeAdapterFactory) - Method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
-
Returns whether
factoryis a type adapter factory created for@JsonAdapterplaced ontype. - isEmpty() - Method in class com.google.gson.JsonArray
-
Returns true if the array is empty.
- isEmpty() - Method in class com.google.gson.JsonObject
-
Returns true if the number of key/value pairs in the object is zero.
- isHtmlSafe() - Method in class com.google.gson.stream.JsonWriter
-
Returns true if this writer writes JSON that's safe for inclusion in HTML and XML documents.
- isInnerClass(Class<?>) - Static method in class com.google.gson.internal.Excluder
- isIntegral(JsonPrimitive) - Static method in class com.google.gson.JsonPrimitive
-
Returns true if the specified number is an integral type (Long, Integer, Short, Byte, BigInteger)
- isJava9OrLater() - Static method in class com.google.gson.internal.JavaVersion
-
Gets a boolean value depending if the application is running on Java 9 or later
- isJavaType(Class<?>) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
- isJavaType(String) - Static method in class com.google.gson.internal.ReflectionAccessFilterHelper
- isJsonArray() - Method in class com.google.gson.JsonElement
-
Provides a check for verifying if this element is a JSON array or not.
- isJsonNull() - Method in class com.google.gson.JsonElement
-
Provides a check for verifying if this element represents a null value or not.
- isJsonObject() - Method in class com.google.gson.JsonElement
-
Provides a check for verifying if this element is a JSON object or not.
- isJsonPrimitive() - Method in class com.google.gson.JsonElement
-
Provides a check for verifying if this element is a primitive or not.
- isLenient() - Method in class com.google.gson.stream.JsonReader
-
Returns true if the
Strictnessof this reader is equal toStrictness.LENIENT. - isLenient() - Method in class com.google.gson.stream.JsonWriter
-
Returns true if the
Strictnessof this writer is equal toStrictness.LENIENT. - isLiteral(char) - Method in class com.google.gson.stream.JsonReader
- isNumber() - Method in class com.google.gson.JsonPrimitive
-
Check whether this primitive contains a Number.
- ISO8601Utils - Class in com.google.gson.internal.bind.util
-
Utilities methods for manipulating dates in iso8601 format.
- ISO8601Utils() - Constructor for class com.google.gson.internal.bind.util.ISO8601Utils
- isPrimitive(Type) - Static method in class com.google.gson.internal.Primitives
-
Returns true if this type is a primitive.
- isRecord - Variable in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- isRecord(Class<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
If records are supported on the JVM, this is equivalent to a call to Class.isRecord()
- isRecord(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordHelper
- isRecord(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordNotSupportedHelper
- isRecord(Class<?>) - Method in class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- isReflective(TypeAdapter<?>) - Static method in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
-
Returns whether the type adapter uses reflection.
- isStatic(Class<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
- isString() - Method in class com.google.gson.JsonPrimitive
-
Check whether this primitive contains a String value.
- isValidSince(Since) - Method in class com.google.gson.internal.Excluder
- isValidUntil(Until) - Method in class com.google.gson.internal.Excluder
- isValidVersion(Since, Until) - Method in class com.google.gson.internal.Excluder
- isWrapperType(Type) - Static method in class com.google.gson.internal.Primitives
-
Returns
trueiftypeis one of the nine primitive-wrapper types, such asInteger. - iterator() - Method in class com.google.gson.internal.LinkedTreeMap.EntrySet
- iterator() - Method in class com.google.gson.internal.LinkedTreeMap.KeySet
- iterator() - Method in class com.google.gson.JsonArray
-
Returns an iterator to navigate the elements of the array.
J
- JavaVersion - Class in com.google.gson.internal
-
Utility to check the major Java version of the current JVM.
- JavaVersion() - Constructor for class com.google.gson.internal.JavaVersion
- JSON_ELEMENT - Static variable in class com.google.gson.internal.bind.TypeAdapters
- JSON_ELEMENT_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- JSON_NON_EXECUTABLE_PREFIX - Static variable in class com.google.gson.Gson
- JsonAdapter - Annotation Type in com.google.gson.annotations
-
An annotation that indicates the Gson
TypeAdapterto use with a class or field. - JsonAdapterAnnotationTypeAdapterFactory - Class in com.google.gson.internal.bind
-
Given a type T, looks for the annotation
JsonAdapterand uses an instance of the specified class as the default type adapter. - JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor) - Constructor for class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
- JsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactory - Class in com.google.gson.internal.bind
- jsonAdapterFactory - Variable in class com.google.gson.Gson
- jsonAdapterFactory - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- JsonArray - Class in com.google.gson
-
A class representing an array type in JSON.
- JsonArray() - Constructor for class com.google.gson.JsonArray
-
Creates an empty JsonArray.
- JsonArray(int) - Constructor for class com.google.gson.JsonArray
-
Creates an empty JsonArray with the desired initial capacity.
- JsonDeserializationContext - Interface in com.google.gson
-
Context for deserialization that is passed to a custom deserializer during invocation of its
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)method. - JsonDeserializer<T> - Interface in com.google.gson
-
Interface representing a custom deserializer for JSON.
- JsonElement - Class in com.google.gson
-
A class representing an element of JSON.
- JsonElement() - Constructor for class com.google.gson.JsonElement
-
Deprecated.Creating custom
JsonElementsubclasses is highly discouraged and can lead to undefined behavior.
This constructor is only kept for backward compatibility. - JsonElementTypeAdapter - Class in com.google.gson.internal.bind
-
Adapter for
JsonElementand subclasses. - JsonElementTypeAdapter() - Constructor for class com.google.gson.internal.bind.JsonElementTypeAdapter
- JsonIOException - Exception in com.google.gson
-
This exception is raised when Gson was unable to read an input stream or write to one.
- JsonIOException(String) - Constructor for exception com.google.gson.JsonIOException
- JsonIOException(String, Throwable) - Constructor for exception com.google.gson.JsonIOException
- JsonIOException(Throwable) - Constructor for exception com.google.gson.JsonIOException
-
Creates exception with the specified cause.
- JsonNull - Class in com.google.gson
-
A class representing a JSON
nullvalue. - JsonNull() - Constructor for class com.google.gson.JsonNull
-
Deprecated.Deprecated since Gson version 1.8, use
JsonNull.INSTANCEinstead. - JsonObject - Class in com.google.gson
-
A class representing an object type in JSON.
- JsonObject() - Constructor for class com.google.gson.JsonObject
-
Creates an empty JsonObject.
- JsonParseException - Exception in com.google.gson
-
This exception is raised if there is a serious issue that occurs during parsing of a Json string.
- JsonParseException(String) - Constructor for exception com.google.gson.JsonParseException
-
Creates exception with the specified message.
- JsonParseException(String, Throwable) - Constructor for exception com.google.gson.JsonParseException
-
Creates exception with the specified message and cause.
- JsonParseException(Throwable) - Constructor for exception com.google.gson.JsonParseException
-
Creates exception with the specified cause.
- JsonParser - Class in com.google.gson
-
A parser to parse JSON into a parse tree of
JsonElements. - JsonParser() - Constructor for class com.google.gson.JsonParser
-
Deprecated.No need to instantiate this class, use the static methods instead.
- JsonPostDeserializer<T> - Interface in com.google.gson.interceptors
-
This interface is implemented by a class that wishes to inspect or modify an object after it has been deserialized.
- JsonPrimitive - Class in com.google.gson
-
A class representing a JSON primitive value.
- JsonPrimitive(Boolean) - Constructor for class com.google.gson.JsonPrimitive
-
Create a primitive containing a boolean value.
- JsonPrimitive(Character) - Constructor for class com.google.gson.JsonPrimitive
-
Create a primitive containing a character.
- JsonPrimitive(Number) - Constructor for class com.google.gson.JsonPrimitive
-
Create a primitive containing a
Number. - JsonPrimitive(String) - Constructor for class com.google.gson.JsonPrimitive
-
Create a primitive containing a String value.
- JsonReader - Class in com.google.gson.stream
-
Reads a JSON (RFC 8259) encoded value as a stream of tokens.
- JsonReader(Reader) - Constructor for class com.google.gson.stream.JsonReader
-
Creates a new instance that reads a JSON-encoded stream from
in. - JsonReaderInternalAccess - Class in com.google.gson.internal
-
Internal-only APIs of JsonReader available only to other classes in Gson.
- JsonReaderInternalAccess() - Constructor for class com.google.gson.internal.JsonReaderInternalAccess
- JsonScope - Class in com.google.gson.stream
-
Lexical scoping elements within a JSON reader or writer.
- JsonScope() - Constructor for class com.google.gson.stream.JsonScope
- JsonSerializationContext - Interface in com.google.gson
-
Context for serialization that is passed to a custom serializer during invocation of its
JsonSerializer.serialize(Object, Type, JsonSerializationContext)method. - JsonSerializer<T> - Interface in com.google.gson
-
Interface representing a custom serializer for JSON.
- JsonStreamParser - Class in com.google.gson
-
A streaming parser that allows reading of multiple
JsonElements from the specified reader asynchronously. - JsonStreamParser(Reader) - Constructor for class com.google.gson.JsonStreamParser
- JsonStreamParser(String) - Constructor for class com.google.gson.JsonStreamParser
- JsonSyntaxException - Exception in com.google.gson
-
This exception is raised when Gson attempts to read (or write) a malformed JSON element.
- JsonSyntaxException(String) - Constructor for exception com.google.gson.JsonSyntaxException
- JsonSyntaxException(String, Throwable) - Constructor for exception com.google.gson.JsonSyntaxException
- JsonSyntaxException(Throwable) - Constructor for exception com.google.gson.JsonSyntaxException
-
Creates exception with the specified cause.
- JsonToken - Enum in com.google.gson.stream
-
A structure, name or value type in a JSON-encoded string.
- JsonToken() - Constructor for enum com.google.gson.stream.JsonToken
- JsonTreeReader - Class in com.google.gson.internal.bind
-
This reader walks the elements of a JsonElement as if it was coming from a character stream.
- JsonTreeReader(JsonElement) - Constructor for class com.google.gson.internal.bind.JsonTreeReader
- JsonTreeWriter - Class in com.google.gson.internal.bind
-
This writer creates a JsonElement.
- JsonTreeWriter() - Constructor for class com.google.gson.internal.bind.JsonTreeWriter
- jsonValue(String) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- jsonValue(String) - Method in class com.google.gson.stream.JsonWriter
-
Writes
valuedirectly to the writer without quoting or escaping. - JsonWriter - Class in com.google.gson.stream
-
Writes a JSON (RFC 8259) encoded value to a stream, one token at a time.
- JsonWriter(Writer) - Constructor for class com.google.gson.stream.JsonWriter
-
Creates a new instance that writes a JSON-encoded stream to
out.
K
- key - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- keySet - Variable in class com.google.gson.internal.LinkedTreeMap
- keySet() - Method in class com.google.gson.internal.LinkedTreeMap
- keySet() - Method in class com.google.gson.JsonObject
-
Returns a set of members key values.
- KeySet() - Constructor for class com.google.gson.internal.LinkedTreeMap.KeySet
- keyToString(JsonElement) - Method in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- keyTypeAdapter - Variable in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
L
- labelToSubtype - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- last() - Method in class com.google.gson.internal.LinkedTreeMap.Node
-
Returns the last node in this subtree.
- lastIndexOf(Object) - Method in class com.google.gson.internal.NonNullElementWrapperList
- lastReturned - Variable in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- LAZILY_PARSED_NUMBER - com.google.gson.ToNumberPolicy
-
Using this policy will ensure that numbers will be read as a lazily parsed number backed by a string.
- LAZILY_PARSED_NUMBER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- LAZILY_PARSED_NUMBER_FACTORY - Static variable in class com.google.gson.internal.bind.NumberTypeAdapter
-
Gson default factory using
ToNumberPolicy.LAZILY_PARSED_NUMBER. - LazilyParsedNumber - Class in com.google.gson.internal
-
This class holds a number value that is lazily converted to a specific number type
- LazilyParsedNumber(String) - Constructor for class com.google.gson.internal.LazilyParsedNumber
- left - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- LEGACY_STRICT - com.google.gson.Strictness
-
Allow certain small deviations from the JSON specification for legacy reasons.
- length() - Method in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- LENIENT - com.google.gson.Strictness
-
Allow large deviations from the JSON specification.
- limit - Variable in class com.google.gson.stream.JsonReader
- lineNumber - Variable in class com.google.gson.stream.JsonReader
- lineStart - Variable in class com.google.gson.stream.JsonReader
- LinkedTreeMap<K,V> - Class in com.google.gson.internal
-
A map of comparable keys to values.
- LinkedTreeMap() - Constructor for class com.google.gson.internal.LinkedTreeMap
-
Create a natural order, empty tree map whose keys must be mutually comparable and non-null, and whose values can be
null. - LinkedTreeMap(boolean) - Constructor for class com.google.gson.internal.LinkedTreeMap
-
Create a natural order, empty tree map whose keys must be mutually comparable and non-null.
- LinkedTreeMap(Comparator<? super K>, boolean) - Constructor for class com.google.gson.internal.LinkedTreeMap
-
Create a tree map ordered by
comparator. - LinkedTreeMap.EntrySet - Class in com.google.gson.internal
- LinkedTreeMap.KeySet - Class in com.google.gson.internal
- LinkedTreeMap.LinkedTreeMapIterator<T> - Class in com.google.gson.internal
- LinkedTreeMap.Node<K,V> - Class in com.google.gson.internal
- LinkedTreeMapIterator() - Constructor for class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- LOCALE - Static variable in class com.google.gson.internal.bind.TypeAdapters
- LOCALE_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- locationString() - Method in class com.google.gson.internal.bind.JsonTreeReader
- locationString() - Method in class com.google.gson.stream.JsonReader
- lock - Variable in class com.google.gson.JsonStreamParser
- LONG - Static variable in class com.google.gson.internal.bind.TypeAdapters
- LONG_OR_DOUBLE - com.google.gson.ToNumberPolicy
-
Using this policy will ensure that numbers will be read as
LongorDoublevalues depending on how JSON numbers are represented:Longif the JSON number can be parsed as aLongvalue, or otherwiseDoubleif it can be parsed as aDoublevalue. - longAdapter(LongSerializationPolicy) - Static method in class com.google.gson.Gson
- longSerializationPolicy - Variable in class com.google.gson.Gson
- longSerializationPolicy - Variable in class com.google.gson.GsonBuilder
- LongSerializationPolicy - Enum in com.google.gson
-
Defines the expected format for a
longorLongtype when it is serialized. - LongSerializationPolicy() - Constructor for enum com.google.gson.LongSerializationPolicy
- longValue() - Method in class com.google.gson.internal.LazilyParsedNumber
- LOWER_CASE_WITH_DASHES - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dash (-).
- LOWER_CASE_WITH_DOTS - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dot (.).
- LOWER_CASE_WITH_UNDERSCORES - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by an underscore (_).
- lowerBound - Variable in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
M
- main(String[]) - Static method in class com.google.gson.extras.examples.rawcollections.RawCollectionsExample
- maintainType - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- majorJavaVersion - Static variable in class com.google.gson.internal.JavaVersion
- makeAccessible(AccessibleObject) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Internal implementation of making an
AccessibleObjectaccessible. - MalformedJsonException - Exception in com.google.gson.stream
-
Thrown when a reader encounters malformed JSON.
- MalformedJsonException(String) - Constructor for exception com.google.gson.stream.MalformedJsonException
- MalformedJsonException(String, Throwable) - Constructor for exception com.google.gson.stream.MalformedJsonException
- MalformedJsonException(Throwable) - Constructor for exception com.google.gson.stream.MalformedJsonException
- map - Variable in class com.google.gson.graph.GraphAdapterBuilder.Graph
-
The graph elements.
- MapTypeAdapterFactory - Class in com.google.gson.internal.bind
-
Adapts maps to either JSON objects or JSON arrays.
- MapTypeAdapterFactory(ConstructorConstructor, boolean) - Constructor for class com.google.gson.internal.bind.MapTypeAdapterFactory
- MapTypeAdapterFactory.Adapter<K,V> - Class in com.google.gson.internal.bind
- matches(Type, Type, Map<String, Type>) - Static method in class com.google.gson.reflect.TypeToken
-
Checks if two types are the same or are equivalent under a variable mapping given in the type map that was provided.
- matchRawType - Variable in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- MAX_NUMBER_STRING_LENGTH - Static variable in class com.google.gson.internal.NumberLimits
- members - Variable in class com.google.gson.JsonObject
- method - Variable in class com.google.gson.typeadapters.PostConstructAdapterFactory.PostConstructAdapter
- MIN_INCOMPLETE_INTEGER - Static variable in class com.google.gson.stream.JsonReader
- modCount - Variable in class com.google.gson.internal.LinkedTreeMap
- modifiers - Variable in class com.google.gson.internal.Excluder
N
- name - Variable in class com.google.gson.extras.examples.rawcollections.RawCollectionsExample.Event
- name(String) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- name(String) - Method in class com.google.gson.stream.JsonWriter
-
Encodes the property name.
- NAME - com.google.gson.stream.JsonToken
-
A JSON property name.
- nameToConstant - Variable in class com.google.gson.internal.bind.EnumTypeAdapter
- NATURAL_ORDER - Static variable in class com.google.gson.internal.LinkedTreeMap
- nestingLimit - Variable in class com.google.gson.stream.JsonReader
- newBuilder() - Method in class com.google.gson.Gson
-
Returns a new GsonBuilder containing all custom factories and configuration used by the current instance.
- newCollectionConstructor(Class<?>) - Static method in class com.google.gson.internal.ConstructorConstructor
- newDefaultConstructor(Class<? super T>, ReflectionAccessFilter.FilterResult) - Static method in class com.google.gson.internal.ConstructorConstructor
- newDefaultImplementationConstructor(Type, Class<? super T>) - Static method in class com.google.gson.internal.ConstructorConstructor
-
Constructors for common interface types like Map and List and their subtypes.
- newFactory(TypeToken<?>, Object) - Static method in class com.google.gson.internal.bind.TreeTypeAdapter
-
Returns a new factory that will match each type against
exactType. - newFactory(TypeToken<TT>, TypeAdapter<TT>) - Static method in class com.google.gson.internal.bind.TypeAdapters
- newFactory(ToNumberStrategy) - Static method in class com.google.gson.internal.bind.NumberTypeAdapter
- newFactory(ToNumberStrategy) - Static method in class com.google.gson.internal.bind.ObjectTypeAdapter
- newFactory(Class<TT>, TypeAdapter<TT>) - Static method in class com.google.gson.internal.bind.TypeAdapters
- newFactory(Class<TT>, Class<TT>, TypeAdapter<? super TT>) - Static method in class com.google.gson.internal.bind.TypeAdapters
- newFactoryForMultipleTypes(Class<TT>, Class<? extends TT>, TypeAdapter<? super TT>) - Static method in class com.google.gson.internal.bind.TypeAdapters
- newFactoryWithMatchRawType(TypeToken<?>, Object) - Static method in class com.google.gson.internal.bind.TreeTypeAdapter
-
Returns a new factory that will match each type and its raw type against
exactType. - newInstance(Class<T>) - Method in class com.google.gson.internal.UnsafeAllocator
- newJsonReader(Reader) - Method in class com.google.gson.Gson
-
Returns a new JSON reader configured for the settings on this Gson instance.
- newJsonWriter(Writer) - Method in class com.google.gson.Gson
-
Returns a new JSON writer configured for the settings on this Gson instance.
- newline - Variable in class com.google.gson.FormattingStyle
- newline() - Method in class com.google.gson.stream.JsonWriter
- newMapConstructor(Type, Class<?>) - Static method in class com.google.gson.internal.ConstructorConstructor
- newParameterizedTypeWithOwner(Type, Class<?>, Type...) - Static method in class com.google.gson.internal.GsonTypes
-
Returns a new parameterized type, applying
typeArgumentstorawTypeand enclosed byownerType. - newSpecialCollectionConstructor(Type, Class<? super T>) - Static method in class com.google.gson.internal.ConstructorConstructor
-
Creates constructors for special JDK collection types which do not have a public no-args constructor.
- newTypeHierarchyFactory(Class<?>, Object) - Static method in class com.google.gson.internal.bind.TreeTypeAdapter
-
Returns a new factory that will match each type's raw type for assignability to
hierarchyType. - newTypeHierarchyFactory(Class<T1>, TypeAdapter<T1>) - Static method in class com.google.gson.internal.bind.TypeAdapters
-
Returns a factory for all subtypes of
typeAdapter. - newUnsafeAllocator(Class<? super T>) - Method in class com.google.gson.internal.ConstructorConstructor
- next - Variable in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- next - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- next() - Method in class com.google.gson.JsonStreamParser
-
Returns the next available
JsonElementon the reader. - nextBoolean() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextBoolean() - Method in class com.google.gson.stream.JsonReader
-
Returns the
booleanvalue of the next token, consuming it. - nextCreate - Variable in class com.google.gson.graph.GraphAdapterBuilder.Graph
-
The instance currently being deserialized.
- nextDouble() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextDouble() - Method in class com.google.gson.stream.JsonReader
-
Returns the
doublevalue of the next token, consuming it. - nextInt() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextInt() - Method in class com.google.gson.stream.JsonReader
-
Returns the
intvalue of the next token, consuming it. - nextJsonElement() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextLong() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextLong() - Method in class com.google.gson.stream.JsonReader
-
Returns the
longvalue of the next token, consuming it. - nextName() - Method in class com.google.gson.graph.GraphAdapterBuilder.Graph
-
Returns a unique name for an element to be inserted into the graph.
- nextName() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextName() - Method in class com.google.gson.stream.JsonReader
-
Returns the next token, a
property name, and consumes it. - nextName(boolean) - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextNode() - Method in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- nextNonWhitespace(boolean) - Method in class com.google.gson.stream.JsonReader
-
Returns the next character in the stream that is neither whitespace nor a part of a comment.
- nextNull() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextNull() - Method in class com.google.gson.stream.JsonReader
-
Consumes the next token from the JSON stream and asserts that it is a literal null.
- nextQuotedValue(char) - Method in class com.google.gson.stream.JsonReader
-
Returns the string up to but not including
quote, unescaping any character escape sequences encountered along the way. - nextString() - Method in class com.google.gson.internal.bind.JsonTreeReader
- nextString() - Method in class com.google.gson.stream.JsonReader
-
Returns the
stringvalue of the next token, consuming it. - nextUnquotedValue() - Method in class com.google.gson.stream.JsonReader
-
Returns an unquoted value as a string.
- Node(boolean) - Constructor for class com.google.gson.internal.LinkedTreeMap.Node
-
Create the header entry
- Node(boolean, LinkedTreeMap.Node<K, V>, K, LinkedTreeMap.Node<K, V>, LinkedTreeMap.Node<K, V>) - Constructor for class com.google.gson.internal.LinkedTreeMap.Node
-
Create a regular entry
- NONEMPTY_ARRAY - Static variable in class com.google.gson.stream.JsonScope
-
An array with at least one value requires a separator before the next element.
- NONEMPTY_DOCUMENT - Static variable in class com.google.gson.stream.JsonScope
-
A top-level value has already been started.
- NONEMPTY_OBJECT - Static variable in class com.google.gson.stream.JsonScope
-
An object with at least one name/value pair requires a separator before the next element.
- nonNull(E) - Method in class com.google.gson.internal.NonNullElementWrapperList
- NonNullElementWrapperList<E> - Class in com.google.gson.internal
-
Listwhich wraps anotherListbut prevents insertion ofnullelements. - NonNullElementWrapperList(ArrayList<E>) - Constructor for class com.google.gson.internal.NonNullElementWrapperList
- NULL - com.google.gson.stream.JsonToken
-
A JSON
null. - nullSafe - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- nullSafe() - Method in annotation type com.google.gson.annotations.JsonAdapter
-
Whether the adapter referenced by
JsonAdapter.value()should be made null-safe. - nullSafe() - Method in class com.google.gson.TypeAdapter
-
This wrapper method is used to make a type adapter null tolerant.
- NullSafeTypeAdapter() - Constructor for class com.google.gson.TypeAdapter.NullSafeTypeAdapter
- nullValue() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- nullValue() - Method in class com.google.gson.stream.JsonWriter
-
Encodes
null. - NUMBER - com.google.gson.stream.JsonToken
-
A JSON number represented in this API by a Java
double,long, orint. - NUMBER_CHAR_DECIMAL - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_DIGIT - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_EXP_DIGIT - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_EXP_E - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_EXP_SIGN - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_FRACTION_DIGIT - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_NONE - Static variable in class com.google.gson.stream.JsonReader
- NUMBER_CHAR_SIGN - Static variable in class com.google.gson.stream.JsonReader
- NumberLimits - Class in com.google.gson.internal
-
This class enforces limits on numbers parsed from JSON to avoid potential performance problems when extremely large numbers are used.
- NumberLimits() - Constructor for class com.google.gson.internal.NumberLimits
- numberToNumberStrategy - Variable in class com.google.gson.Gson
- numberToNumberStrategy - Variable in class com.google.gson.GsonBuilder
- NumberTypeAdapter - Class in com.google.gson.internal.bind
-
Type adapter for
Number. - NumberTypeAdapter(ToNumberStrategy) - Constructor for class com.google.gson.internal.bind.NumberTypeAdapter
O
- ObjectConstructor<T> - Interface in com.google.gson.internal
-
Defines a generic object construction factory.
- objectToNumberStrategy - Variable in class com.google.gson.Gson
- objectToNumberStrategy - Variable in class com.google.gson.GsonBuilder
- ObjectTypeAdapter - Class in com.google.gson.internal.bind
-
Adapts types whose static type is only 'Object'.
- ObjectTypeAdapter(Gson, ToNumberStrategy) - Constructor for class com.google.gson.internal.bind.ObjectTypeAdapter
- of(Class<T>) - Static method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Creates a new runtime type adapter for
baseTypeusing"type"as the type field name. - of(Class<T>, String) - Static method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Creates a new runtime type adapter for
baseTypeusingtypeFieldNameas the type field name. - of(Class<T>, String, boolean) - Static method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Creates a new runtime type adapter for
baseTypeusingtypeFieldNameas the type field name. - openScope(int, char) - Method in class com.google.gson.stream.JsonWriter
-
Enters a new scope by appending any necessary whitespace and the given bracket.
- out - Variable in class com.google.gson.stream.JsonWriter
-
The JSON output destination
- ownerType - Variable in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
P
- padInt(StringBuilder, int, int) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Zero pad a number to a specified length
- padInt(StringBuilder, int, int) - Static method in class com.google.gson.typeadapters.UtcDateTypeAdapter
-
Zero pad a number to a specified length
- ParameterizedTypeImpl(Type, Class<?>, Type...) - Constructor for class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- parent - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- parse(JsonReader) - Static method in class com.google.gson.internal.Streams
-
Takes a reader in any state and returns the next value as a JsonElement.
- parse(JsonReader) - Method in class com.google.gson.JsonParser
-
Deprecated.
- parse(Reader) - Method in class com.google.gson.JsonParser
-
Deprecated.
- parse(String) - Method in class com.google.gson.JsonParser
-
Deprecated.
- parse(String, ParsePosition) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Parse a date from ISO-8601 formatted string.
- parse(String, ParsePosition) - Static method in class com.google.gson.typeadapters.UtcDateTypeAdapter
-
Parse a date from ISO-8601 formatted string.
- parseBigDecimal(String) - Static method in class com.google.gson.internal.NumberLimits
- parseBigInteger(String) - Static method in class com.google.gson.internal.NumberLimits
- parseDotted(String) - Static method in class com.google.gson.internal.JavaVersion
- parseInt(String, int, int) - Static method in class com.google.gson.internal.bind.util.ISO8601Utils
-
Parse an integer located between 2 given offsets in a string
- parseInt(String, int, int) - Static method in class com.google.gson.typeadapters.UtcDateTypeAdapter
-
Parse an integer located between 2 given offsets in a string
- parseMajorJavaVersion(String) - Static method in class com.google.gson.internal.JavaVersion
- parser - Variable in class com.google.gson.JsonStreamParser
- parseReader(JsonReader) - Static method in class com.google.gson.JsonParser
-
Returns the next value from the JSON stream as a parse tree.
- parseReader(Reader) - Static method in class com.google.gson.JsonParser
-
Parses the complete JSON string provided by the reader into a parse tree.
- parseString(String) - Static method in class com.google.gson.JsonParser
-
Parses the specified JSON string into a parse tree.
- pathIndices - Variable in class com.google.gson.internal.bind.JsonTreeReader
- pathIndices - Variable in class com.google.gson.stream.JsonReader
- pathNames - Variable in class com.google.gson.internal.bind.JsonTreeReader
- pathNames - Variable in class com.google.gson.stream.JsonReader
- peek() - Method in class com.google.gson.internal.bind.JsonTreeReader
- peek() - Method in class com.google.gson.internal.bind.JsonTreeWriter
- peek() - Method in class com.google.gson.stream.JsonReader
-
Returns the type of the next token without consuming it.
- peek() - Method in class com.google.gson.stream.JsonWriter
-
Returns the value on the top of the stack.
- peeked - Variable in class com.google.gson.stream.JsonReader
- PEEKED_BEGIN_ARRAY - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_BEGIN_OBJECT - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_BUFFERED - Static variable in class com.google.gson.stream.JsonReader
-
When this is returned, the string value is stored in peekedString.
- PEEKED_DOUBLE_QUOTED - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_DOUBLE_QUOTED_NAME - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_END_ARRAY - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_END_OBJECT - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_EOF - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_FALSE - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_LONG - Static variable in class com.google.gson.stream.JsonReader
-
When this is returned, the integer value is stored in peekedLong.
- PEEKED_NONE - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_NULL - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_NUMBER - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_SINGLE_QUOTED - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_SINGLE_QUOTED_NAME - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_TRUE - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_UNQUOTED - Static variable in class com.google.gson.stream.JsonReader
- PEEKED_UNQUOTED_NAME - Static variable in class com.google.gson.stream.JsonReader
- peekedLong - Variable in class com.google.gson.stream.JsonReader
-
A peeked value that was composed entirely of digits with an optional leading dash.
- peekedNumberLength - Variable in class com.google.gson.stream.JsonReader
-
The number of characters in a peeked number literal.
- peekedString - Variable in class com.google.gson.stream.JsonReader
-
A peeked string that should be parsed on the next double, long or string.
- peekKeyword() - Method in class com.google.gson.stream.JsonReader
- peekNumber() - Method in class com.google.gson.stream.JsonReader
- peekStack() - Method in class com.google.gson.internal.bind.JsonTreeReader
- pendingName - Variable in class com.google.gson.internal.bind.JsonTreeWriter
-
The name for the next JSON object value.
- popStack() - Method in class com.google.gson.internal.bind.JsonTreeReader
- pos - Variable in class com.google.gson.stream.JsonReader
- PostConstructAdapter(TypeAdapter<T>, Method) - Constructor for class com.google.gson.typeadapters.PostConstructAdapterFactory.PostConstructAdapter
- PostConstructAdapterFactory - Class in com.google.gson.typeadapters
- PostConstructAdapterFactory() - Constructor for class com.google.gson.typeadapters.PostConstructAdapterFactory
- PostConstructAdapterFactory.PostConstructAdapter<T> - Class in com.google.gson.typeadapters
- postDeserialize() - Method in annotation type com.google.gson.interceptors.Intercept
-
Specify the class that provides the methods that should be invoked after an instance has been deserialized.
- postDeserialize(T) - Method in interface com.google.gson.interceptors.JsonPostDeserializer
-
This method is called by Gson after the object has been deserialized from Json.
- postDeserializer - Variable in class com.google.gson.interceptors.InterceptorFactory.InterceptorAdapter
- PreJava9DateFormatProvider - Class in com.google.gson.internal
-
Provides DateFormats for US locale with patterns which were the default ones before Java 9.
- PreJava9DateFormatProvider() - Constructor for class com.google.gson.internal.PreJava9DateFormatProvider
- PRETTY - Static variable in class com.google.gson.FormattingStyle
-
The default pretty printing formatting style:
"\n"as newline two spaces as indent a space between':'and the subsequent value - prev - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- PRIMITIVE_DEFAULTS - Static variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- primitiveDefaults() - Static method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- Primitives - Class in com.google.gson.internal
-
Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
- Primitives() - Constructor for class com.google.gson.internal.Primitives
- product - Variable in class com.google.gson.internal.bind.JsonTreeWriter
-
the JSON element constructed by this writer.
- promoteNameToValue() - Method in class com.google.gson.internal.bind.JsonTreeReader
- promoteNameToValue(JsonReader) - Method in class com.google.gson.internal.JsonReaderInternalAccess
-
Changes the type of the current property name token to a string value.
- push(int) - Method in class com.google.gson.stream.JsonReader
- push(int) - Method in class com.google.gson.stream.JsonWriter
- push(Object) - Method in class com.google.gson.internal.bind.JsonTreeReader
- put(JsonElement) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- put(K, V) - Method in class com.google.gson.internal.LinkedTreeMap
- putFactoryAndGetCurrent(Class<?>, TypeAdapterFactory) - Method in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
Q
- queue - Variable in class com.google.gson.graph.GraphAdapterBuilder.Graph
-
The queue of elements to write during serialization.
R
- RawCollectionsExample - Class in com.google.gson.extras.examples.rawcollections
- RawCollectionsExample() - Constructor for class com.google.gson.extras.examples.rawcollections.RawCollectionsExample
- RawCollectionsExample.Event - Class in com.google.gson.extras.examples.rawcollections
- rawType - Variable in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- rawType - Variable in class com.google.gson.reflect.TypeToken
- read(GraphAdapterBuilder.Graph) - Method in class com.google.gson.graph.GraphAdapterBuilder.Element
- read(JsonReader) - Method in class com.google.gson.Gson.FutureTypeAdapter
- read(JsonReader) - Method in class com.google.gson.interceptors.InterceptorFactory.InterceptorAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.ArrayTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.CollectionTypeAdapterFactory.Adapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.EnumTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.JsonElementTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.NumberTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.ObjectTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.TreeTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- read(JsonReader) - Method in class com.google.gson.internal.sql.SqlDateTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.sql.SqlTimestampTypeAdapter
- read(JsonReader) - Method in class com.google.gson.internal.sql.SqlTimeTypeAdapter
- read(JsonReader) - Method in class com.google.gson.TypeAdapter.NullSafeTypeAdapter
- read(JsonReader) - Method in class com.google.gson.TypeAdapter
-
Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object.
- read(JsonReader) - Method in class com.google.gson.typeadapters.PostConstructAdapterFactory.PostConstructAdapter
- read(JsonReader) - Method in class com.google.gson.typeadapters.UtcDateTypeAdapter
- readEscapeCharacter() - Method in class com.google.gson.stream.JsonReader
-
Unescapes the character identified by the character or characters that immediately follow a backslash.
- readField(A, JsonReader, ReflectiveTypeAdapterFactory.BoundField) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
-
Read a single BoundField into the accumulator.
- readField(Object[], JsonReader, ReflectiveTypeAdapterFactory.BoundField) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- readField(T, JsonReader, ReflectiveTypeAdapterFactory.BoundField) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldReflectionAdapter
- readIntoArray(JsonReader, int, Object[]) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
Read the value into the target array, used to provide constructor arguments for records
- readIntoField(JsonReader, Object) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
Read the value from the reader, and set it on the corresponding field on target via reflection
- readNumber(JsonReader) - Method in interface com.google.gson.ToNumberStrategy
-
Reads a number from the given JSON reader.
- readObject(ObjectInputStream) - Method in class com.google.gson.internal.LazilyParsedNumber
- readObject(ObjectInputStream) - Method in class com.google.gson.internal.LinkedTreeMap
- readTerminal(JsonReader, JsonToken) - Method in class com.google.gson.internal.bind.JsonElementTypeAdapter
-
Reads a
JsonElementwhich cannot have any nested elements - readTerminal(JsonReader, JsonToken) - Method in class com.google.gson.internal.bind.ObjectTypeAdapter
-
Reads an
Objectwhich cannot have any nested elements - rebalance(LinkedTreeMap.Node<K, V>, boolean) - Method in class com.google.gson.internal.LinkedTreeMap
-
Rebalances the tree by making any AVL rotations necessary between the newly-unbalanced node and the tree's root.
- recognizeSubtypes - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- recognizeSubtypes() - Method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Ensures that this factory will handle not just the given
baseType, but any subtype of that type. - RECORD_HELPER - Static variable in class com.google.gson.internal.reflect.ReflectionHelper
- RecordAdapter(Class<T>, ReflectiveTypeAdapterFactory.FieldsData, boolean) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.RecordAdapter
- RecordHelper() - Constructor for class com.google.gson.internal.reflect.ReflectionHelper.RecordHelper
- RecordNotSupportedHelper() - Constructor for class com.google.gson.internal.reflect.ReflectionHelper.RecordNotSupportedHelper
- RecordSupportedHelper() - Constructor for class com.google.gson.internal.reflect.ReflectionHelper.RecordSupportedHelper
- ReflectionAccessFilter - Interface in com.google.gson
-
Filter for determining whether reflection based serialization and deserialization is allowed for a class.
- ReflectionAccessFilter.FilterResult - Enum in com.google.gson
-
Result of a filter check.
- ReflectionAccessFilterHelper - Class in com.google.gson.internal
-
Internal helper class for
ReflectionAccessFilter. - ReflectionAccessFilterHelper() - Constructor for class com.google.gson.internal.ReflectionAccessFilterHelper
- ReflectionAccessFilterHelper.AccessChecker - Class in com.google.gson.internal
- reflectionFilters - Variable in class com.google.gson.Gson
- reflectionFilters - Variable in class com.google.gson.GsonBuilder
- reflectionFilters - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- reflectionFilters - Variable in class com.google.gson.internal.ConstructorConstructor
- ReflectionHelper - Class in com.google.gson.internal.reflect
- ReflectionHelper() - Constructor for class com.google.gson.internal.reflect.ReflectionHelper
- ReflectionHelper.RecordHelper - Class in com.google.gson.internal.reflect
-
Internal abstraction over reflection when Records are supported.
- ReflectionHelper.RecordNotSupportedHelper - Class in com.google.gson.internal.reflect
-
Instance used when records are not supported
- ReflectionHelper.RecordSupportedHelper - Class in com.google.gson.internal.reflect
- ReflectiveTypeAdapterFactory - Class in com.google.gson.internal.bind
-
Type adapter that reflects over the fields and methods of a class.
- ReflectiveTypeAdapterFactory(ConstructorConstructor, FieldNamingStrategy, Excluder, JsonAdapterAnnotationTypeAdapterFactory, List<ReflectionAccessFilter>) - Constructor for class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
- ReflectiveTypeAdapterFactory.Adapter<T,A> - Class in com.google.gson.internal.bind
-
Base class for Adapters produced by this factory.
- ReflectiveTypeAdapterFactory.BoundField - Class in com.google.gson.internal.bind
- ReflectiveTypeAdapterFactory.FieldReflectionAdapter<T> - Class in com.google.gson.internal.bind
- ReflectiveTypeAdapterFactory.FieldsData - Class in com.google.gson.internal.bind
- ReflectiveTypeAdapterFactory.RecordAdapter<T> - Class in com.google.gson.internal.bind
- registerOn(GsonBuilder) - Method in class com.google.gson.graph.GraphAdapterBuilder
-
Registers the graph adapter on the provided
GsonBuilder. - registerSubtype(Class<? extends T>) - Method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Registers
typeidentified by itssimple name. - registerSubtype(Class<? extends T>, String) - Method in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
-
Registers
typeidentified bylabel. - registerTypeAdapter(Type, Object) - Method in class com.google.gson.GsonBuilder
-
Configures Gson for custom serialization or deserialization.
- registerTypeAdapterFactory(TypeAdapterFactory) - Method in class com.google.gson.GsonBuilder
-
Registers a factory for type adapters.
- registerTypeHierarchyAdapter(Class<?>, Object) - Method in class com.google.gson.GsonBuilder
-
Configures Gson for custom serialization or deserialization for an inheritance type hierarchy.
- remove() - Method in class com.google.gson.internal.LinkedTreeMap.LinkedTreeMapIterator
- remove() - Method in class com.google.gson.JsonStreamParser
-
This optional
Iteratormethod is not relevant for stream parsing and hence is not implemented. - remove(int) - Method in class com.google.gson.internal.NonNullElementWrapperList
- remove(int) - Method in class com.google.gson.JsonArray
-
Removes the element at the specified position in this array.
- remove(JsonElement) - Method in class com.google.gson.JsonArray
-
Removes the first occurrence of the specified element from this array, if it is present.
- remove(Object) - Method in class com.google.gson.internal.LinkedTreeMap.EntrySet
- remove(Object) - Method in class com.google.gson.internal.LinkedTreeMap.KeySet
- remove(Object) - Method in class com.google.gson.internal.LinkedTreeMap
- remove(Object) - Method in class com.google.gson.internal.NonNullElementWrapperList
- remove(String) - Method in class com.google.gson.JsonObject
-
Removes the
propertyfrom this object. - removeAll(Collection<?>) - Method in class com.google.gson.internal.NonNullElementWrapperList
- removeInternal(LinkedTreeMap.Node<K, V>, boolean) - Method in class com.google.gson.internal.LinkedTreeMap
-
Removes
nodefrom this tree, rearranging the tree's structure as necessary. - removeInternalByKey(Object) - Method in class com.google.gson.internal.LinkedTreeMap
- replaceInParent(LinkedTreeMap.Node<K, V>, LinkedTreeMap.Node<K, V>) - Method in class com.google.gson.internal.LinkedTreeMap
- REPLACEMENT_CHARS - Static variable in class com.google.gson.stream.JsonWriter
- replaceTop(int) - Method in class com.google.gson.stream.JsonWriter
-
Replace the value on the top of the stack with the given value.
- requireExpose - Variable in class com.google.gson.internal.Excluder
- requiresOwnerType(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Whether an owner type must be specified when constructing a
ParameterizedTypeforrawType. - resolve(Type, Class<?>, Type) - Static method in class com.google.gson.internal.GsonTypes
- resolve(Type, Class<?>, Type, Map<TypeVariable<?>, Type>) - Static method in class com.google.gson.internal.GsonTypes
- resolveTypeVariable(Type, Class<?>, TypeVariable<?>) - Static method in class com.google.gson.internal.GsonTypes
- retainAll(Collection<?>) - Method in class com.google.gson.internal.NonNullElementWrapperList
- right - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- root - Variable in class com.google.gson.internal.LinkedTreeMap
- rotateLeft(LinkedTreeMap.Node<K, V>) - Method in class com.google.gson.internal.LinkedTreeMap
-
Rotates the subtree so that its root's right child is the new root.
- rotateRight(LinkedTreeMap.Node<K, V>) - Method in class com.google.gson.internal.LinkedTreeMap
-
Rotates the subtree so that its root's left child is the new root.
- RuntimeTypeAdapterFactory<T> - Class in com.google.gson.typeadapters
-
Adapts values whose runtime type may differ from their declaration type.
- RuntimeTypeAdapterFactory(Class<?>, String, boolean) - Constructor for class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
S
- SENTINEL_CLOSED - Static variable in class com.google.gson.internal.bind.JsonTreeReader
- SENTINEL_CLOSED - Static variable in class com.google.gson.internal.bind.JsonTreeWriter
-
Added to the top of the stack when this writer is closed to cause following ops to fail.
- separateCamelCase(String, char) - Static method in enum com.google.gson.FieldNamingPolicy
-
Converts the field name that uses camel-case define word separation into separate words that are separated by the provided
separator. - SerializationDelegatingTypeAdapter<T> - Class in com.google.gson.internal.bind
-
Type adapter which might delegate serialization to another adapter.
- SerializationDelegatingTypeAdapter() - Constructor for class com.google.gson.internal.bind.SerializationDelegatingTypeAdapter
- serializationStrategies - Variable in class com.google.gson.internal.Excluder
- serialize() - Method in annotation type com.google.gson.annotations.Expose
-
If
true, the field marked with this annotation is written out in the JSON while serializing. - serialize(Long) - Method in enum com.google.gson.LongSerializationPolicy
-
Serialize this
valueusing this serialization policy. - serialize(Object) - Method in class com.google.gson.internal.bind.TreeTypeAdapter.GsonContextImpl
- serialize(Object) - Method in interface com.google.gson.JsonSerializationContext
-
Invokes default serialization on the specified object.
- serialize(Object, Type) - Method in class com.google.gson.internal.bind.TreeTypeAdapter.GsonContextImpl
- serialize(Object, Type) - Method in interface com.google.gson.JsonSerializationContext
-
Invokes default serialization on the specified object passing the specific type information.
- serialize(T, Type, JsonSerializationContext) - Method in interface com.google.gson.JsonSerializer
-
Gson invokes this call-back method during serialization when it encounters a field of the specified type.
- serializedFields - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.FieldsData
- serializedName - Variable in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
Name used for serialization (but not for deserialization)
- SerializedName - Annotation Type in com.google.gson.annotations
-
An annotation that indicates this member should be serialized to JSON with the provided name value as its field name.
- serializeInnerClasses - Variable in class com.google.gson.internal.Excluder
- serializeNulls - Variable in class com.google.gson.Gson
- serializeNulls - Variable in class com.google.gson.GsonBuilder
- serializeNulls - Variable in class com.google.gson.stream.JsonWriter
- serializeNulls() - Method in class com.google.gson.Gson
-
Returns whether this Gson instance is serializing JSON object properties with
nullvalues, or just omits them. - serializeNulls() - Method in class com.google.gson.GsonBuilder
-
Configures Gson to serialize null fields.
- serializer - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- serializer - Variable in class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- serializeSpecialFloatingPointValues - Variable in class com.google.gson.Gson
- serializeSpecialFloatingPointValues - Variable in class com.google.gson.GsonBuilder
- serializeSpecialFloatingPointValues() - Method in class com.google.gson.GsonBuilder
-
Section 6 of JSON specification disallows special double values (NaN, Infinity, -Infinity).
- serialVersionUID - Static variable in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- serialVersionUID - Static variable in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- serialVersionUID - Static variable in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- serialVersionUID - Static variable in exception com.google.gson.JsonIOException
- serialVersionUID - Static variable in exception com.google.gson.JsonParseException
- serialVersionUID - Static variable in exception com.google.gson.JsonSyntaxException
- serialVersionUID - Static variable in exception com.google.gson.stream.MalformedJsonException
- set(int, JsonElement) - Method in class com.google.gson.JsonArray
-
Replaces the element at the specified position in this array with the specified element.
- set(int, E) - Method in class com.google.gson.internal.NonNullElementWrapperList
- setChars(char[]) - Method in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- setDateFormat(int) - Method in class com.google.gson.GsonBuilder
-
Deprecated.Counterintuitively, despite this method taking only a 'date style' Gson will use a format which includes both date and time, with the 'time style' being the last value set by
GsonBuilder.setDateFormat(int, int). Therefore prefer usingGsonBuilder.setDateFormat(int, int)and explicitly provide the desired 'time style'. - setDateFormat(int, int) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to serialize
Dateobjects according to the style value provided. - setDateFormat(String) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to serialize
Dateobjects according to the pattern provided. - setDelegate(TypeAdapter<T>) - Method in class com.google.gson.Gson.FutureTypeAdapter
- setExclusionStrategies(ExclusionStrategy...) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a set of exclusion strategies during both serialization and deserialization.
- setFieldNamingPolicy(FieldNamingPolicy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a specific naming policy to an object's fields during serialization and deserialization.
- setFieldNamingStrategy(FieldNamingStrategy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a specific naming strategy to an object's fields during serialization and deserialization.
- setFormattingStyle(FormattingStyle) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to output JSON that uses a certain kind of formatting style (for example newline and indent).
- setFormattingStyle(FormattingStyle) - Method in class com.google.gson.stream.JsonWriter
-
Sets the formatting style to be used in the encoded document.
- setHtmlSafe(boolean) - Method in class com.google.gson.stream.JsonWriter
-
Configures this writer to emit JSON that's safe for direct inclusion in HTML and XML documents.
- setIndent(String) - Method in class com.google.gson.stream.JsonWriter
-
Sets the indentation string to be repeated for each level of indentation in the encoded document.
- setLenient() - Method in class com.google.gson.GsonBuilder
-
Deprecated.This method is equivalent to calling
GsonBuilder.setStrictness(Strictness)withStrictness.LENIENT:setStrictness(Strictness.LENIENT) - setLenient(boolean) - Method in class com.google.gson.stream.JsonReader
-
Deprecated.Please use
JsonReader.setStrictness(Strictness)instead.JsonReader.setLenient(true)should be replaced byJsonReader.setStrictness(Strictness.LENIENT)andJsonReader.setLenient(false)should be replaced byJsonReader.setStrictness(Strictness.LEGACY_STRICT).
However, if you usedsetLenient(false)before, you might preferStrictness.STRICTnow instead. - setLenient(boolean) - Method in class com.google.gson.stream.JsonWriter
-
Deprecated.Please use
JsonWriter.setStrictness(Strictness)instead.JsonWriter.setLenient(true)should be replaced byJsonWriter.setStrictness(Strictness.LENIENT)andJsonWriter.setLenient(false)should be replaced byJsonWriter.setStrictness(Strictness.LEGACY_STRICT).
However, if you usedsetLenient(false)before, you might preferStrictness.STRICTnow instead. - setLongSerializationPolicy(LongSerializationPolicy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a specific serialization policy for
Longandlongobjects. - setNestingLimit(int) - Method in class com.google.gson.stream.JsonReader
-
Sets the nesting limit of this reader.
- setNumberToNumberStrategy(ToNumberStrategy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a specific number strategy during deserialization of
Number. - setObjectToNumberStrategy(ToNumberStrategy) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to apply a specific number strategy during deserialization of
Object. - setPrettyPrinting() - Method in class com.google.gson.GsonBuilder
-
Configures Gson to output JSON that fits in a page for pretty printing.
- setSerializeNulls(boolean) - Method in class com.google.gson.stream.JsonWriter
-
Sets whether object members are serialized when their value is null.
- setStrictness(Strictness) - Method in class com.google.gson.GsonBuilder
-
Sets the strictness of this builder to the provided parameter.
- setStrictness(Strictness) - Method in class com.google.gson.stream.JsonReader
-
Configures how liberal this parser is in what it accepts.
- setStrictness(Strictness) - Method in class com.google.gson.stream.JsonWriter
-
Configures how strict this writer is with regard to the syntax rules specified in RFC 8259.
- setValue(V) - Method in class com.google.gson.internal.LinkedTreeMap.Node
- setVersion(double) - Method in class com.google.gson.GsonBuilder
-
Configures Gson to enable versioning support.
- SHORT - Static variable in class com.google.gson.internal.bind.TypeAdapters
- SHORT_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- shouldSkipClass(Class<?>) - Method in interface com.google.gson.ExclusionStrategy
-
Decides if a class should be serialized or deserialized
- shouldSkipField(FieldAttributes) - Method in interface com.google.gson.ExclusionStrategy
-
Decides if a field should be skipped during serialization or deserialization.
- SIMPLE_NAME - Static variable in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- Since - Annotation Type in com.google.gson.annotations
-
An annotation that indicates the version number since a member or a type has been present.
- SingleTypeFactory(Object, TypeToken<?>, boolean, Class<?>) - Constructor for class com.google.gson.internal.bind.TreeTypeAdapter.SingleTypeFactory
- size - Variable in class com.google.gson.internal.LinkedTreeMap
- size() - Method in class com.google.gson.internal.LinkedTreeMap.EntrySet
- size() - Method in class com.google.gson.internal.LinkedTreeMap.KeySet
- size() - Method in class com.google.gson.internal.LinkedTreeMap
- size() - Method in class com.google.gson.internal.NonNullElementWrapperList
- size() - Method in class com.google.gson.JsonArray
-
Returns the number of elements in the array.
- size() - Method in class com.google.gson.JsonObject
-
Returns the number of key/value pairs in the object.
- skipPastForGetDelegateAdapter - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
-
Only intended as
skipPastforGson.getDelegateAdapter(TypeAdapterFactory, TypeToken), must not be used in any other way. - skipQuotedValue(char) - Method in class com.google.gson.stream.JsonReader
- skipTo(String) - Method in class com.google.gson.stream.JsonReader
- skipToEndOfLine() - Method in class com.google.gson.stream.JsonReader
-
Advances the position until after the next newline character.
- skipUnquotedValue() - Method in class com.google.gson.stream.JsonReader
- skipValue() - Method in class com.google.gson.internal.bind.JsonTreeReader
- skipValue() - Method in class com.google.gson.stream.JsonReader
-
Skips the next value recursively.
- source - Variable in class com.google.gson.extras.examples.rawcollections.RawCollectionsExample.Event
- spaceAfterSeparators - Variable in class com.google.gson.FormattingStyle
- SqlDateTypeAdapter - Class in com.google.gson.internal.sql
-
Adapter for java.sql.Date.
- SqlDateTypeAdapter() - Constructor for class com.google.gson.internal.sql.SqlDateTypeAdapter
- SqlTimestampTypeAdapter - Class in com.google.gson.internal.sql
- SqlTimestampTypeAdapter(TypeAdapter<Date>) - Constructor for class com.google.gson.internal.sql.SqlTimestampTypeAdapter
- SqlTimeTypeAdapter - Class in com.google.gson.internal.sql
-
Adapter for java.sql.Time.
- SqlTimeTypeAdapter() - Constructor for class com.google.gson.internal.sql.SqlTimeTypeAdapter
- SqlTypesSupport - Class in com.google.gson.internal.sql
-
Encapsulates access to
java.sqltypes, to allow Gson to work without thejava.sqlmodule being present. - SqlTypesSupport() - Constructor for class com.google.gson.internal.sql.SqlTypesSupport
- stack - Variable in class com.google.gson.internal.bind.JsonTreeReader
-
The nesting stack.
- stack - Variable in class com.google.gson.internal.bind.JsonTreeWriter
-
The JsonElements and JsonArrays under modification, outermost to innermost.
- stack - Variable in class com.google.gson.stream.JsonReader
-
The nesting stack.
- stack - Variable in class com.google.gson.stream.JsonWriter
- stackSize - Variable in class com.google.gson.internal.bind.JsonTreeReader
-
The used size of
JsonTreeReader.stack; the value atstackSize - 1is the value last placed on the stack. - stackSize - Variable in class com.google.gson.stream.JsonReader
- stackSize - Variable in class com.google.gson.stream.JsonWriter
- Streams - Class in com.google.gson.internal
-
Reads and writes GSON parse trees over streams.
- Streams() - Constructor for class com.google.gson.internal.Streams
- Streams.AppendableWriter - Class in com.google.gson.internal
-
Adapts an
Appendableso it can be passed anywhere aWriteris used. - Streams.AppendableWriter.CurrentWrite - Class in com.google.gson.internal
-
A mutable char sequence pointing at a single char[].
- STRICT - com.google.gson.Strictness
-
Strict compliance with the JSON specification.
- strictness - Variable in class com.google.gson.Gson
- strictness - Variable in class com.google.gson.GsonBuilder
- strictness - Variable in class com.google.gson.stream.JsonReader
- strictness - Variable in class com.google.gson.stream.JsonWriter
- Strictness - Enum in com.google.gson
-
Modes that indicate how strictly a JSON reader or writer follows the syntax laid out in the RFC 8259 JSON specification.
- Strictness() - Constructor for enum com.google.gson.Strictness
- string(String) - Method in class com.google.gson.stream.JsonWriter
- STRING - com.google.gson.LongSerializationPolicy
-
Serializes a long value as a quoted string.
- STRING - com.google.gson.stream.JsonToken
-
A JSON string.
- STRING - Static variable in class com.google.gson.internal.bind.TypeAdapters
- STRING_BUFFER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- STRING_BUFFER_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- STRING_BUILDER - Static variable in class com.google.gson.internal.bind.TypeAdapters
- STRING_BUILDER_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- STRING_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- stringToConstant - Variable in class com.google.gson.internal.bind.EnumTypeAdapter
- subSequence(int, int) - Method in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- subtypeOf(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns a type that represents an unknown type that extends
bound. - subtypeToLabel - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- supertypeOf(Type) - Static method in class com.google.gson.internal.GsonTypes
-
Returns a type that represents an unknown supertype of
bound. - SUPPORTS_SQL_TYPES - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
-
trueifjava.sqltypes are supported,falseotherwise - syntaxError(String) - Method in class com.google.gson.stream.JsonReader
-
Throws a new
MalformedJsonExceptionwith the given message and information about the current location.
T
- threadLocalAdapterResults - Variable in class com.google.gson.Gson
-
This thread local guards against reentrant calls to
Gson.getAdapter(TypeToken). - TIME_FACTORY - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
- TIMESTAMP_DATE_TYPE - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
- TIMESTAMP_FACTORY - Static variable in class com.google.gson.internal.sql.SqlTypesSupport
- timeStyle - Variable in class com.google.gson.Gson
- timeStyle - Variable in class com.google.gson.GsonBuilder
- TIMEZONE_UTC - Static variable in class com.google.gson.internal.bind.util.ISO8601Utils
-
The UTC timezone, prefetched to avoid more lookups.
- toArray() - Method in class com.google.gson.internal.NonNullElementWrapperList
- toArray(T[]) - Method in class com.google.gson.internal.NonNullElementWrapperList
- toJson(JsonElement) - Method in class com.google.gson.Gson
-
Converts a tree of
JsonElements into its equivalent JSON representation. - toJson(JsonElement, JsonWriter) - Method in class com.google.gson.Gson
-
Writes the JSON for
jsonElementtowriter. - toJson(JsonElement, Appendable) - Method in class com.google.gson.Gson
-
Writes out the equivalent JSON for a tree of
JsonElements. - toJson(Writer, T) - Method in class com.google.gson.TypeAdapter
-
Converts
valueto a JSON document and writes it toout. - toJson(Object) - Method in class com.google.gson.Gson
-
This method serializes the specified object into its equivalent JSON representation.
- toJson(Object, Appendable) - Method in class com.google.gson.Gson
-
This method serializes the specified object into its equivalent JSON representation and writes it to the writer.
- toJson(Object, Type) - Method in class com.google.gson.Gson
-
This method serializes the specified object, including those of generic types, into its equivalent JSON representation.
- toJson(Object, Type, JsonWriter) - Method in class com.google.gson.Gson
-
Writes the JSON representation of
srcof typetypeOfSrctowriter. - toJson(Object, Type, Appendable) - Method in class com.google.gson.Gson
-
This method serializes the specified object, including those of generic types, into its equivalent JSON representation and writes it to the writer.
- toJson(T) - Method in class com.google.gson.TypeAdapter
-
Converts
valueto a JSON document. - toJsonTree(Object) - Method in class com.google.gson.Gson
-
This method serializes the specified object into its equivalent representation as a tree of
JsonElements. - toJsonTree(Object, Type) - Method in class com.google.gson.Gson
-
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of
JsonElements. - toJsonTree(T) - Method in class com.google.gson.TypeAdapter
-
Converts
valueto a JSON tree. - ToNumberPolicy - Enum in com.google.gson
-
An enumeration that defines two standard number reading strategies and a couple of strategies to overcome some historical Gson limitations while deserializing numbers as
ObjectandNumber. - ToNumberPolicy() - Constructor for enum com.google.gson.ToNumberPolicy
- toNumberStrategy - Variable in class com.google.gson.internal.bind.NumberTypeAdapter
- toNumberStrategy - Variable in class com.google.gson.internal.bind.ObjectTypeAdapter
- ToNumberStrategy - Interface in com.google.gson
-
A strategy that is used to control how numbers should be deserialized for
ObjectandNumberwhen a concrete type of the deserialized number is unknown in advance. - toString() - Method in class com.google.gson.extras.examples.rawcollections.RawCollectionsExample.Event
- toString() - Method in class com.google.gson.FieldAttributes
- toString() - Method in class com.google.gson.Gson
- toString() - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- toString() - Method in class com.google.gson.internal.bind.JsonTreeReader
- toString() - Method in class com.google.gson.internal.ConstructorConstructor
- toString() - Method in class com.google.gson.internal.GsonTypes.GenericArrayTypeImpl
- toString() - Method in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- toString() - Method in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- toString() - Method in class com.google.gson.internal.LazilyParsedNumber
- toString() - Method in class com.google.gson.internal.LinkedTreeMap.Node
- toString() - Method in class com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- toString() - Method in class com.google.gson.JsonElement
-
Converts this element to a JSON string.
- toString() - Method in class com.google.gson.reflect.TypeToken
- toString() - Method in class com.google.gson.stream.JsonReader
- toString() - Method in class com.google.gson.TypeAdapter.NullSafeTypeAdapter
- translateName(Field) - Method in interface com.google.gson.FieldNamingStrategy
-
Translates the field name into its JSON field name representation.
- TREE_TYPE_CLASS_DUMMY_FACTORY - Static variable in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
-
Factory used for
TreeTypeAdapters created for@JsonAdapteron a class. - TREE_TYPE_FIELD_DUMMY_FACTORY - Static variable in class com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory
-
Factory used for
TreeTypeAdapters created for@JsonAdapteron a field. - TreeTypeAdapter<T> - Class in com.google.gson.internal.bind
-
Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter.
- TreeTypeAdapter(JsonSerializer<T>, JsonDeserializer<T>, Gson, TypeToken<T>, TypeAdapterFactory) - Constructor for class com.google.gson.internal.bind.TreeTypeAdapter
- TreeTypeAdapter(JsonSerializer<T>, JsonDeserializer<T>, Gson, TypeToken<T>, TypeAdapterFactory, boolean) - Constructor for class com.google.gson.internal.bind.TreeTypeAdapter
- TreeTypeAdapter.GsonContextImpl - Class in com.google.gson.internal.bind
- TreeTypeAdapter.SingleTypeFactory - Class in com.google.gson.internal.bind
- TroubleshootingGuide - Class in com.google.gson.internal
- TroubleshootingGuide() - Constructor for class com.google.gson.internal.TroubleshootingGuide
- tryBeginNesting(JsonReader, JsonToken) - Method in class com.google.gson.internal.bind.JsonElementTypeAdapter
-
Tries to begin reading a JSON array or JSON object, returning
nullif the next element is neither of those. - tryBeginNesting(JsonReader, JsonToken) - Method in class com.google.gson.internal.bind.ObjectTypeAdapter
-
Tries to begin reading a JSON array or JSON object, returning
nullif the next element is neither of those. - tryMakeAccessible(Constructor<?>) - Static method in class com.google.gson.internal.reflect.ReflectionHelper
-
Tries making the constructor accessible, returning an exception message if this fails.
- type - Variable in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- type - Variable in class com.google.gson.reflect.TypeToken
- typeAdapter - Variable in class com.google.gson.graph.GraphAdapterBuilder.Element
-
This element's type adapter if known.
- TypeAdapter<T> - Class in com.google.gson
-
Converts Java objects to and from JSON.
- TypeAdapter() - Constructor for class com.google.gson.TypeAdapter
- TypeAdapter.NullSafeTypeAdapter - Class in com.google.gson
- TypeAdapterFactory - Interface in com.google.gson
-
Creates type adapters for set of related types.
- TypeAdapterRuntimeTypeWrapper<T> - Class in com.google.gson.internal.bind
- TypeAdapterRuntimeTypeWrapper(Gson, TypeAdapter<T>, Type) - Constructor for class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- TypeAdapters - Class in com.google.gson.internal.bind
-
Type adapters for basic types.
- TypeAdapters() - Constructor for class com.google.gson.internal.bind.TypeAdapters
- typeArguments - Variable in class com.google.gson.internal.GsonTypes.ParameterizedTypeImpl
- typeEquals(ParameterizedType, ParameterizedType, Map<String, Type>) - Static method in class com.google.gson.reflect.TypeToken
-
Checks if two parameterized types are exactly equal, under the variable replacement described in the typeVarMap.
- typeFieldName - Variable in class com.google.gson.typeadapters.RuntimeTypeAdapterFactory
- typeToken - Variable in class com.google.gson.internal.bind.TreeTypeAdapter
- TypeToken<T> - Class in com.google.gson.reflect
-
Represents a generic type
T. - TypeToken() - Constructor for class com.google.gson.reflect.TypeToken
-
Constructs a new type literal.
- TypeToken(Type) - Constructor for class com.google.gson.reflect.TypeToken
-
Unsafe.
- typeTokenCache - Variable in class com.google.gson.Gson
- typeToString(Type) - Static method in class com.google.gson.internal.GsonTypes
U
- unexpectedTokenError(String) - Method in class com.google.gson.stream.JsonReader
- UNREADABLE_READER - Static variable in class com.google.gson.internal.bind.JsonTreeReader
- UnsafeAllocator - Class in com.google.gson.internal
-
Do sneaky things to allocate objects without invoking their constructors.
- UnsafeAllocator() - Constructor for class com.google.gson.internal.UnsafeAllocator
- Until - Annotation Type in com.google.gson.annotations
-
An annotation that indicates the version number until a member or a type should be present.
- unwrap(Class<T>) - Static method in class com.google.gson.internal.Primitives
-
Returns the corresponding primitive type of
typeif it is a wrapper type; otherwise returnstypeitself. - UNWRITABLE_WRITER - Static variable in class com.google.gson.internal.bind.JsonTreeWriter
- UPPER_CAMEL_CASE - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form.
- UPPER_CAMEL_CASE_WITH_SPACES - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by a space.
- UPPER_CASE_WITH_UNDERSCORES - com.google.gson.FieldNamingPolicy
-
Using this naming policy with Gson will modify the Java Field name from its camel cased form to an upper case field name where each word is separated by an underscore (_).
- upperBound - Variable in class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- upperCaseFirstLetter(String) - Static method in enum com.google.gson.FieldNamingPolicy
-
Ensures the JSON field names begins with an upper case letter.
- URI - Static variable in class com.google.gson.internal.bind.TypeAdapters
- URI_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- URL - Static variable in class com.google.gson.internal.bind.TypeAdapters
- URL_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
- useJdkUnsafe - Variable in class com.google.gson.Gson
- useJdkUnsafe - Variable in class com.google.gson.GsonBuilder
- useJdkUnsafe - Variable in class com.google.gson.internal.ConstructorConstructor
- usesEmptyNewlineAndIndent - Variable in class com.google.gson.stream.JsonWriter
- usesSpaceAfterSeparators() - Method in class com.google.gson.FormattingStyle
-
Returns whether a space will be used after
','and':'. - UTC_ID - Static variable in class com.google.gson.internal.bind.util.ISO8601Utils
-
ID to represent the 'UTC' string, default timezone since Jackson 2.7
- UTC_TIME_ZONE - Static variable in class com.google.gson.typeadapters.UtcDateTypeAdapter
- UtcDateTypeAdapter - Class in com.google.gson.typeadapters
- UtcDateTypeAdapter() - Constructor for class com.google.gson.typeadapters.UtcDateTypeAdapter
- UUID - Static variable in class com.google.gson.internal.bind.TypeAdapters
- UUID_FACTORY - Static variable in class com.google.gson.internal.bind.TypeAdapters
V
- VALID_JSON_NUMBER_PATTERN - Static variable in class com.google.gson.stream.JsonWriter
- value - Variable in class com.google.gson.graph.GraphAdapterBuilder.Element
-
The value if known.
- value - Variable in class com.google.gson.internal.LazilyParsedNumber
- value - Variable in class com.google.gson.internal.LinkedTreeMap.Node
- value - Variable in class com.google.gson.JsonPrimitive
- value() - Method in annotation type com.google.gson.annotations.JsonAdapter
- value() - Method in annotation type com.google.gson.annotations.SerializedName
-
The desired name of the field when it is serialized or deserialized.
- value() - Method in annotation type com.google.gson.annotations.Since
-
The value indicating a version number since this member or type has been present.
- value() - Method in annotation type com.google.gson.annotations.Until
-
The value indicating a version number until this member or type should be included.
- value(boolean) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(boolean) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(double) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(double) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(float) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(float) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(long) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(long) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(Boolean) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(Boolean) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(Number) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(Number) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - value(String) - Method in class com.google.gson.internal.bind.JsonTreeWriter
- value(String) - Method in class com.google.gson.stream.JsonWriter
-
Encodes
value. - valueOf(String) - Static method in enum com.google.gson.FieldNamingPolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.gson.LongSerializationPolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.gson.ReflectionAccessFilter.FilterResult
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.gson.stream.JsonToken
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.gson.Strictness
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.gson.ToNumberPolicy
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.gson.FieldNamingPolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.gson.LongSerializationPolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.gson.ReflectionAccessFilter.FilterResult
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.gson.stream.JsonToken
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.gson.Strictness
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.gson.ToNumberPolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- valueTypeAdapter - Variable in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- verifyNoTypeVariable(Type) - Static method in class com.google.gson.reflect.TypeToken
- version - Variable in class com.google.gson.internal.Excluder
- VERSION - Static variable in class com.google.gson.internal.GsonBuildConfig
-
This field is automatically populated by Maven when a build is triggered
W
- WildcardTypeImpl(Type[], Type[]) - Constructor for class com.google.gson.internal.GsonTypes.WildcardTypeImpl
- withExclusionStrategy(ExclusionStrategy, boolean, boolean) - Method in class com.google.gson.internal.Excluder
- withIndent(String) - Method in class com.google.gson.FormattingStyle
-
Creates a
FormattingStylewith the specified indent string. - withModifiers(int...) - Method in class com.google.gson.internal.Excluder
- withNewline(String) - Method in class com.google.gson.FormattingStyle
-
Creates a
FormattingStylewith the specified newline setting. - withSpaceAfterSeparators(boolean) - Method in class com.google.gson.FormattingStyle
-
Creates a
FormattingStylewhich either uses a space after the separators','and':'in the JSON output, or not. - withVersion(double) - Method in class com.google.gson.internal.Excluder
- wrap(Class<T>) - Static method in class com.google.gson.internal.Primitives
-
Returns the corresponding wrapper type of
typeif it is a primitive type; otherwise returnstypeitself. - write(char[], int, int) - Method in class com.google.gson.internal.Streams.AppendableWriter
- write(int) - Method in class com.google.gson.internal.Streams.AppendableWriter
- write(JsonElement, JsonWriter) - Static method in class com.google.gson.internal.Streams
-
Writes the JSON element to the writer, recursively.
- write(JsonWriter) - Method in class com.google.gson.graph.GraphAdapterBuilder.Element
- write(JsonWriter, JsonElement) - Method in class com.google.gson.internal.bind.JsonElementTypeAdapter
- write(JsonWriter, Number) - Method in class com.google.gson.internal.bind.NumberTypeAdapter
- write(JsonWriter, Object) - Method in class com.google.gson.internal.bind.ArrayTypeAdapter
- write(JsonWriter, Object) - Method in class com.google.gson.internal.bind.ObjectTypeAdapter
- write(JsonWriter, Object) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
Read this field value from the source, and append its JSON value to the writer
- write(JsonWriter, Date) - Method in class com.google.gson.internal.sql.SqlDateTypeAdapter
- write(JsonWriter, Time) - Method in class com.google.gson.internal.sql.SqlTimeTypeAdapter
- write(JsonWriter, Timestamp) - Method in class com.google.gson.internal.sql.SqlTimestampTypeAdapter
- write(JsonWriter, Collection<E>) - Method in class com.google.gson.internal.bind.CollectionTypeAdapterFactory.Adapter
- write(JsonWriter, Date) - Method in class com.google.gson.internal.bind.DefaultDateTypeAdapter
- write(JsonWriter, Date) - Method in class com.google.gson.typeadapters.UtcDateTypeAdapter
- write(JsonWriter, Map<K, V>) - Method in class com.google.gson.internal.bind.MapTypeAdapterFactory.Adapter
- write(JsonWriter, T) - Method in class com.google.gson.Gson.FutureTypeAdapter
- write(JsonWriter, T) - Method in class com.google.gson.interceptors.InterceptorFactory.InterceptorAdapter
- write(JsonWriter, T) - Method in class com.google.gson.internal.bind.EnumTypeAdapter
- write(JsonWriter, T) - Method in class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.Adapter
- write(JsonWriter, T) - Method in class com.google.gson.internal.bind.TreeTypeAdapter
- write(JsonWriter, T) - Method in class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
- write(JsonWriter, T) - Method in class com.google.gson.TypeAdapter.NullSafeTypeAdapter
- write(JsonWriter, T) - Method in class com.google.gson.TypeAdapter
-
Writes one JSON value (an array, object, string, number, boolean or null) for
value. - write(JsonWriter, T) - Method in class com.google.gson.typeadapters.PostConstructAdapterFactory.PostConstructAdapter
- write(String, int, int) - Method in class com.google.gson.internal.Streams.AppendableWriter
- writeDeferredName() - Method in class com.google.gson.stream.JsonWriter
- writeReplace() - Method in class com.google.gson.internal.LazilyParsedNumber
-
If somebody is unlucky enough to have to serialize one of these, serialize it as a BigDecimal so that they won't need Gson on the other side to deserialize it.
- writeReplace() - Method in class com.google.gson.internal.LinkedTreeMap
-
If somebody is unlucky enough to have to serialize one of these, serialize it as a LinkedHashMap so that they won't need Gson on the other side to deserialize it.
- writerForAppendable(Appendable) - Static method in class com.google.gson.internal.Streams
All Classes All Packages