| Modifier and Type | Field and Description |
|---|---|
| private final Gson | |
| private final TypeAdapter | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static Type | getRuntimeTypeIfMoreSpecific(Type type, Object value)
Finds a compatible runtime type if it is more specific |
| private static boolean | isReflective(TypeAdapter<?>
the type adapter to check. typeAdapter)Returns whether the type adapter uses reflection. |
| 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 |
| context | back to summary |
|---|---|
| private final Gson context | |
| delegate | back to summary |
|---|---|
| private final TypeAdapter<T> delegate | |
| type | back to summary |
|---|---|
| private final Type type | |
| TypeAdapterRuntimeTypeWrapper | back to summary |
|---|---|
| pack-priv TypeAdapterRuntimeTypeWrapper(Gson context, TypeAdapter<T> delegate, Type type) | |
| getRuntimeTypeIfMoreSpecific | back to summary |
|---|---|
| private static Type getRuntimeTypeIfMoreSpecific(Type type, Object value) Finds a compatible runtime type if it is more specific | |
| isReflective | back to summary |
|---|---|
| private static boolean isReflective(TypeAdapter<?> typeAdapter) Returns whether the type adapter uses reflection.
| |
| 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
| |