Class JsonElementTypeAdapter.Factory
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.json.adapters.JsonElementTypeAdapter.Factory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
- Enclosing class:
- JsonElementTypeAdapter
public static class JsonElementTypeAdapter.Factory extends java.lang.Object implements com.google.gson.TypeAdapterFactoryThis factory should not be registered with a GsonBuilder because it always matches. Use it as argument to aJsonAdapterannotation like this:@JsonAdapter(JsonElementTypeAdapter.Factory.class)
-
-
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> type)
-