Class GraphTypeAdapterFactory
- java.lang.Object
-
- com.ss.android.ugc.bytex.common.graph.cache.GraphTypeAdapterFactory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public final class GraphTypeAdapterFactory extends java.lang.Object implements com.google.gson.TypeAdapterFactoryCreated by yangzhiqian on 2020-03-03
Desc:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGraphTypeAdapterFactory.ClassEntityTypeAdapterclassGraphTypeAdapterFactory.ClassNodeTypeAdapterclassGraphTypeAdapterFactory.FieldEntityTypeAdapterclassGraphTypeAdapterFactory.InterfaceNodeTypeAdapterclassGraphTypeAdapterFactory.MethodEntityTypeAdapter
-
Constructor Summary
Constructors Constructor Description GraphTypeAdapterFactory()
-
Method Summary
All Methods Static 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)static <T> java.util.List<T>readList(com.google.gson.stream.JsonReader jsonReader, com.google.gson.Gson gson, java.lang.Class<T> t)static <T> voidwriteList(com.google.gson.stream.JsonWriter jsonWriter, com.google.gson.Gson gson, java.util.List<T> list)
-
-
-
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:
createin interfacecom.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
-
-