Number.
| Modifier and Type | Field and Description |
|---|---|
| private static final TypeAdapterFactory | LAZILY_PARSED_NUMBER_FACTORY
Gson default factory using |
| private final ToNumberStrategy |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TypeAdapterFactory | |
| private static TypeAdapterFactory | |
| public Number | 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 |
| LAZILY_PARSED_NUMBER_FACTORY | back to summary |
|---|---|
| private static final TypeAdapterFactory LAZILY_PARSED_NUMBER_FACTORY Gson default factory using | |
| toNumberStrategy | back to summary |
|---|---|
| private final ToNumberStrategy toNumberStrategy | |
| NumberTypeAdapter | back to summary |
|---|---|
| private NumberTypeAdapter(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 Number 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
| |