| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static interface | |
| private static class | |
| pack-priv abstract static class | TypeAdapters.
An abstract |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | BOOLEAN_AS_STRING
Writes a boolean as a string. |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory | |
| public static final TypeAdapter | |
| public static final TypeAdapterFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TypeAdapter | |
| public static TypeAdapter | |
| private static void | |
| public static TypeAdapterFactory | |
| public static <TT> TypeAdapterFactory | |
| public static <TT> TypeAdapterFactory | |
| public static <TT> TypeAdapterFactory | |
| public static <TT> TypeAdapterFactory | newFactoryForMultipleTypes(Class<TT> base, Class<? extends TT> sub, TypeAdapter<? super TT> typeAdapter)
|
| public static <T1> TypeAdapterFactory | newTypeHierarchyFactory(Class<T1> clazz, TypeAdapter<T1> typeAdapter)
Returns a factory for all subtypes of |
| private static int |
| ATOMIC_BOOLEAN | back to summary |
|---|---|
| public static final TypeAdapter<AtomicBoolean> ATOMIC_BOOLEAN | |
| ATOMIC_BOOLEAN_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory ATOMIC_BOOLEAN_FACTORY | |
| ATOMIC_INTEGER | back to summary |
|---|---|
| public static final TypeAdapter<AtomicInteger> ATOMIC_INTEGER | |
| ATOMIC_INTEGER_ARRAY | back to summary |
|---|---|
| public static final TypeAdapter<AtomicIntegerArray> ATOMIC_INTEGER_ARRAY | |
| ATOMIC_INTEGER_ARRAY_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory ATOMIC_INTEGER_ARRAY_FACTORY | |
| ATOMIC_INTEGER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory ATOMIC_INTEGER_FACTORY | |
| BIG_DECIMAL | back to summary |
|---|---|
| public static final TypeAdapter<BigDecimal> BIG_DECIMAL | |
| BIG_DECIMAL_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory BIG_DECIMAL_FACTORY | |
| BIG_INTEGER | back to summary |
|---|---|
| public static final TypeAdapter<BigInteger> BIG_INTEGER | |
| BIG_INTEGER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory BIG_INTEGER_FACTORY | |
| BIT_SET | back to summary |
|---|---|
| public static final TypeAdapter<BitSet> BIT_SET | |
| BIT_SET_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory BIT_SET_FACTORY | |
| BOOLEAN | back to summary |
|---|---|
| public static final TypeAdapter<Boolean> BOOLEAN | |
| BOOLEAN_AS_STRING | back to summary |
|---|---|
| public static final TypeAdapter<Boolean> BOOLEAN_AS_STRING Writes a boolean as a string. Useful for map keys, where booleans aren't otherwise permitted. | |
| BOOLEAN_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory BOOLEAN_FACTORY | |
| BYTE | back to summary |
|---|---|
| public static final TypeAdapter<Number> BYTE | |
| BYTE_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory BYTE_FACTORY | |
| CALENDAR | back to summary |
|---|---|
| public static final TypeAdapter<Calendar> CALENDAR | |
| CALENDAR_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory CALENDAR_FACTORY | |
| CHARACTER | back to summary |
|---|---|
| public static final TypeAdapter<Character> CHARACTER | |
| CHARACTER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory CHARACTER_FACTORY | |
| CLASS | back to summary |
|---|---|
public static final TypeAdapter<Class<T>> CLASS
| |
| CLASS_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory CLASS_FACTORY | |
| CURRENCY | back to summary |
|---|---|
| public static final TypeAdapter<Currency> CURRENCY | |
| CURRENCY_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory CURRENCY_FACTORY | |
| DOUBLE | back to summary |
|---|---|
| public static final TypeAdapter<Number> DOUBLE | |
| DOUBLE_STRICT | back to summary |
|---|---|
| public static final TypeAdapter<Number> DOUBLE_STRICT | |
| ENUM_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory ENUM_FACTORY | |
| FLOAT | back to summary |
|---|---|
| public static final TypeAdapter<Number> FLOAT | |
| FLOAT_STRICT | back to summary |
|---|---|
| public static final TypeAdapter<Number> FLOAT_STRICT | |
| INET_ADDRESS | back to summary |
|---|---|
| public static final TypeAdapter<InetAddress> INET_ADDRESS | |
| INET_ADDRESS_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory INET_ADDRESS_FACTORY | |
| INTEGER | back to summary |
|---|---|
| public static final TypeAdapter<Number> INTEGER | |
| INTEGER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory INTEGER_FACTORY | |
| JSON_ELEMENT | back to summary |
|---|---|
| public static final TypeAdapter<JsonElement> JSON_ELEMENT | |
| JSON_ELEMENT_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory JSON_ELEMENT_FACTORY | |
| LAZILY_PARSED_NUMBER | back to summary |
|---|---|
| public static final TypeAdapter<LazilyParsedNumber> LAZILY_PARSED_NUMBER | |
| LAZILY_PARSED_NUMBER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory LAZILY_PARSED_NUMBER_FACTORY | |
| LOCALE | back to summary |
|---|---|
| public static final TypeAdapter<Locale> LOCALE | |
| LOCALE_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory LOCALE_FACTORY | |
| LONG | back to summary |
|---|---|
| public static final TypeAdapter<Number> LONG | |
| LONG_AS_STRING | back to summary |
|---|---|
| public static final TypeAdapter<Number> LONG_AS_STRING | |
| SHORT | back to summary |
|---|---|
| public static final TypeAdapter<Number> SHORT | |
| SHORT_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory SHORT_FACTORY | |
| STRING | back to summary |
|---|---|
| public static final TypeAdapter<String> STRING | |
| STRING_BUFFER | back to summary |
|---|---|
| public static final TypeAdapter<StringBuffer> STRING_BUFFER | |
| STRING_BUFFER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory STRING_BUFFER_FACTORY | |
| STRING_BUILDER | back to summary |
|---|---|
| public static final TypeAdapter<StringBuilder> STRING_BUILDER | |
| STRING_BUILDER_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory STRING_BUILDER_FACTORY | |
| STRING_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory STRING_FACTORY | |
| URI | back to summary |
|---|---|
| public static final TypeAdapter<URI> URI | |
| URI_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory URI_FACTORY | |
| URL | back to summary |
|---|---|
| public static final TypeAdapter<URL> URL | |
| URL_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory URL_FACTORY | |
| UUID | back to summary |
|---|---|
| public static final TypeAdapter<UUID> UUID | |
| UUID_FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory UUID_FACTORY | |
| TypeAdapters | back to summary |
|---|---|
| private TypeAdapters() | |
| atomicLongAdapter | back to summary |
|---|---|
| public static TypeAdapter | |
| atomicLongArrayAdapter | back to summary |
|---|---|
| public static TypeAdapter | |
| checkValidFloatingPoint | back to summary |
|---|---|
| private static void checkValidFloatingPoint(double value) | |
| javaTimeTypeAdapterFactory | back to summary |
|---|---|
| public static TypeAdapterFactory javaTimeTypeAdapterFactory() | |
| newFactory | back to summary |
|---|---|
public static <TT> TypeAdapterFactory newFactory(TypeToken<TT> type, TypeAdapter<TT> typeAdapter)
| |
| newFactory | back to summary |
|---|---|
public static <TT> TypeAdapterFactory newFactory(Class<TT> type, TypeAdapter<TT> typeAdapter)
| |
| newFactory | back to summary |
|---|---|
public static <TT> TypeAdapterFactory newFactory(Class<TT> unboxed, Class<TT> boxed, TypeAdapter<? super TT> typeAdapter)
| |
| newFactoryForMultipleTypes | back to summary |
|---|---|
public static <TT> TypeAdapterFactory newFactoryForMultipleTypes(Class<TT> base, Class<? extends TT> sub, TypeAdapter<? super TT> typeAdapter)
| |
| newTypeHierarchyFactory | back to summary |
|---|---|
| public static <T1> TypeAdapterFactory newTypeHierarchyFactory(Class<T1> clazz, TypeAdapter<T1> typeAdapter) Returns a factory for all subtypes of | |
| toIntExact | back to summary |
|---|---|
| private static int toIntExact(long x) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Double | read(JsonReader in)
Implements abstract com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. |
| public void | write(JsonWriter out, Number value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| strict | back to summary |
|---|---|
| private final boolean strict | |
| DoubleAdapter | back to summary |
|---|---|
| pack-priv DoubleAdapter(boolean strict) | |
| read | back to summary |
|---|---|
| public Double read(JsonReader in) throws IOException Implements abstract com. Doc from com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
| |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, Number value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |
| Modifier and Type | Method and Description |
|---|---|
| public TypeAdapterFactory |
| get | back to summary |
|---|---|
| public TypeAdapterFactory get() | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Float | read(JsonReader in)
Implements abstract com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. |
| public void | write(JsonWriter out, Number value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| strict | back to summary |
|---|---|
| private final boolean strict | |
| FloatAdapter | back to summary |
|---|---|
| pack-priv FloatAdapter(boolean strict) | |
| read | back to summary |
|---|---|
| public Float read(JsonReader in) throws IOException Implements abstract com. Doc from com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
| |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, Number value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |
TypeAdapter for classes whose JSON serialization consists of a fixed set of
integer fields. That is the case for Calendar and the legacy serialization of various
java.time types.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract T | |
| pack-priv abstract long[] | |
| public T | read(JsonReader in)
Implements abstract com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. |
| public void | write(JsonWriter out, T value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| fields | back to summary |
|---|---|
| private final List<String> fields | |
| IntegerFieldsTypeAdapter | back to summary |
|---|---|
| pack-priv IntegerFieldsTypeAdapter(String... fields) | |
| create | back to summary |
|---|---|
| pack-priv abstract T create(long[] values) | |
| integerValues | back to summary |
|---|---|
| pack-priv abstract long[] integerValues(T t) | |
| read | back to summary |
|---|---|
| public T read(JsonReader in) throws IOException Implements abstract com. Doc from com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
| |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, T value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |