类 JsonElementTypeAdapter.Factory

java.lang.Object
org.javacs.lsp.adapters.JsonElementTypeAdapter.Factory
所有已实现的接口:
com.google.gson.TypeAdapterFactory
封闭类:
JsonElementTypeAdapter

public static class JsonElementTypeAdapter.Factory extends Object implements com.google.gson.TypeAdapterFactory
This factory should not be registered with a GsonBuilder because it always matches. Use it as argument to a JsonAdapter annotation like this: @JsonAdapter(JsonElementTypeAdapter.Factory.class)
  • 构造器详细资料

    • Factory

      public Factory()
  • 方法详细资料

    • create

      public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
      指定者:
      create 在接口中 com.google.gson.TypeAdapterFactory