Class CollectionTypeAdapter<E>
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.util.Collection<E>>
-
- org.eclipse.lsp4j.jsonrpc.json.adapters.CollectionTypeAdapter<E>
-
- Direct Known Subclasses:
CollectionTypeAdapterFactory.Adapter
public class CollectionTypeAdapter<E> extends com.google.gson.TypeAdapter<java.util.Collection<E>>A specialized type adapter for collections that can handle single values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionTypeAdapter.Factory
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<E>read(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, java.util.Collection<E> collection)
-