Class GraphTypeAdapterFactory

  • All Implemented Interfaces:
    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:
    • Constructor Detail

      • GraphTypeAdapterFactory

        public GraphTypeAdapterFactory()
    • Method Detail

      • create

        public <T> com.google.gson.TypeAdapter<T> create​(com.google.gson.Gson gson,
                                                         com.google.gson.reflect.TypeToken<T> type)
        Specified by:
        create in interface 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
        Throws:
        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
        Throws:
        java.io.IOException