类 GraphTypeAdapterFactory

  • 所有已实现的接口:
    com.google.gson.TypeAdapterFactory

    public final class GraphTypeAdapterFactory
    extends java.lang.Object
    implements com.google.gson.TypeAdapterFactory
    Created by yangzhiqian on 2020-03-03
    Desc:
    • 构造器详细资料

      • GraphTypeAdapterFactory

        public GraphTypeAdapterFactory()
    • 方法详细资料

      • 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
      • readList

        public static <T> java.util.List<T> readList​(com.google.gson.stream.JsonReader jsonReader,
                                                     com.google.gson.Gson gson,
                                                     java.lang.Class<T> t)
                                              throws java.io.IOException
        抛出:
        java.io.IOException
      • writeList

        public static <T> void writeList​(com.google.gson.stream.JsonWriter jsonWriter,
                                         com.google.gson.Gson gson,
                                         java.util.List<T> list)
                                  throws java.io.IOException
        抛出:
        java.io.IOException