| Modifier and Type | Field and Description |
|---|---|
| private static final TypeAdapterFactory | DOUBLE_FACTORY
Gson default factory using |
| private final Gson | |
| private final ToNumberStrategy |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TypeAdapterFactory | |
| private static TypeAdapterFactory | |
| public Object | 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. |
| private Object | |
| private Object | tryBeginNesting(JsonReader in, JsonToken peeked)
Tries to begin reading a JSON array or JSON object, returning |
| public void | write(JsonWriter out, Object value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| DOUBLE_FACTORY | back to summary |
|---|---|
| private static final TypeAdapterFactory DOUBLE_FACTORY Gson default factory using | |
| gson | back to summary |
|---|---|
| private final Gson gson | |
| toNumberStrategy | back to summary |
|---|---|
| private final ToNumberStrategy toNumberStrategy | |
| ObjectTypeAdapter | back to summary |
|---|---|
| private ObjectTypeAdapter(Gson gson, ToNumberStrategy toNumberStrategy) | |
| getFactory | back to summary |
|---|---|
| public static TypeAdapterFactory getFactory(ToNumberStrategy toNumberStrategy) | |
| newFactory | back to summary |
|---|---|
| private static TypeAdapterFactory newFactory(ToNumberStrategy toNumberStrategy) | |
| read | back to summary |
|---|---|
| public Object 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.
| |
| readTerminal | back to summary |
|---|---|
| private Object readTerminal(JsonReader in, JsonToken peeked) throws IOException Reads an | |
| tryBeginNesting | back to summary |
|---|---|
| private Object tryBeginNesting(JsonReader in, JsonToken peeked) throws IOException Tries to begin reading a JSON array or JSON object, returning | |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, Object value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |