public class CollectionTypeAdapter<E>
extends com.google.gson.TypeAdapter<java.util.Collection<E>>
Modifier and Type | Class and Description |
---|---|
static class |
CollectionTypeAdapter.Factory |
Constructor and Description |
---|
CollectionTypeAdapter(com.google.gson.Gson gson,
java.lang.reflect.Type elementType,
com.google.gson.TypeAdapter<E> elementTypeAdapter,
java.util.function.Supplier<java.util.Collection<E>> constructor) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<E> |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
java.util.Collection<E> collection) |