类 GraphTypeAdapterFactory
- java.lang.Object
-
- com.ss.android.ugc.bytex.common.graph.cache.GraphTypeAdapterFactory
-
- 所有已实现的接口:
com.google.gson.TypeAdapterFactory
public final class GraphTypeAdapterFactory extends java.lang.Object implements com.google.gson.TypeAdapterFactoryCreated by yangzhiqian on 2020-03-03
Desc:
-
-
构造器概要
构造器 构造器 说明 GraphTypeAdapterFactory()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 <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)
-
-
-
方法详细资料
-
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
-
-