Class CollectionTypeAdapter.Factory
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.json.adapters.CollectionTypeAdapter.Factory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
- Direct Known Subclasses:
CollectionTypeAdapterFactory
- Enclosing class:
- CollectionTypeAdapter<E>
public static class CollectionTypeAdapter.Factory extends java.lang.Object implements com.google.gson.TypeAdapterFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.google.gson.TypeAdapter<T>create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> typeToken)protected com.google.gson.TypeAdapter<?>create(com.google.gson.Gson gson, java.lang.reflect.Type elementType, com.google.gson.TypeAdapter<?> elementTypeAdapter, java.util.function.Supplier<java.util.Collection<java.lang.Object>> constructor)protected <E> java.util.function.Supplier<java.util.Collection<E>>getConstructor(java.lang.Class<? extends java.util.Collection<E>> rawType)
-
-
-
Method Detail
-
create
public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> typeToken)- Specified by:
createin interfacecom.google.gson.TypeAdapterFactory
-
create
protected com.google.gson.TypeAdapter<?> create(com.google.gson.Gson gson, java.lang.reflect.Type elementType, com.google.gson.TypeAdapter<?> elementTypeAdapter, java.util.function.Supplier<java.util.Collection<java.lang.Object>> constructor)
-
getConstructor
protected <E> java.util.function.Supplier<java.util.Collection<E>> getConstructor(java.lang.Class<? extends java.util.Collection<E>> rawType)
-
-