| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConstructorConstructor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> TypeAdapter | create(Gson gson, TypeToken<T> typeToken)
Implements com. Returns a type adapter for |
| constructorConstructor | back to summary |
|---|---|
| private final ConstructorConstructor constructorConstructor | |
| CollectionTypeAdapterFactory | back to summary |
|---|---|
| public CollectionTypeAdapterFactory(ConstructorConstructor constructorConstructor) | |
| create | back to summary |
|---|---|
| public <T> TypeAdapter Implements com. Doc from com. Returns a type adapter for
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectConstructor | |
| private final TypeAdapter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | 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, Collection<E> collection)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| constructor | back to summary |
|---|---|
| private final ObjectConstructor<? extends Collection<E>> constructor | |
| elementTypeAdapter | back to summary |
|---|---|
| private final TypeAdapter<E> elementTypeAdapter | |
| Adapter | back to summary |
|---|---|
| pack-priv Adapter(TypeAdapter<E> elementTypeAdapter, ObjectConstructor<? extends Collection<E>> constructor) | |
| read | back to summary |
|---|---|
| public Collection 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, Collection<E> collection) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |