Class GeneralSimpleObjectAdapter<T>

java.lang.Object
com.google.gson.TypeAdapter<T>
cn.leancloud.gson.GeneralSimpleObjectAdapter<T>

public class GeneralSimpleObjectAdapter<T> extends com.google.gson.TypeAdapter<T>
  • Constructor Details

    • GeneralSimpleObjectAdapter

      public GeneralSimpleObjectAdapter(Class clazz)
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter jsonWriter, T t) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<T>
      Throws:
      IOException
    • read

      public T read(com.google.gson.stream.JsonReader jsonReader) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<T>
      Throws:
      IOException