| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final TypeAdapter | |
| public static final TypeAdapterFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| public void | write(JsonWriter out, Object array)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| componentType | back to summary |
|---|---|
| private final Class<E> componentType | |
| componentTypeAdapter | back to summary |
|---|---|
| private final TypeAdapter<E> componentTypeAdapter | |
| FACTORY | back to summary |
|---|---|
| public static final TypeAdapterFactory FACTORY | |
| ArrayTypeAdapter | back to summary |
|---|---|
| public ArrayTypeAdapter(Gson context, TypeAdapter<E> componentTypeAdapter, Class<E> componentType) | |
| 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.
| |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, Object array) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |