Class GeneralFieldMappingObjectAdapter<T>

java.lang.Object
com.google.gson.TypeAdapter<T>
cn.leancloud.gson.GeneralFieldMappingObjectAdapter<T>
Type Parameters:
T - generic type.

@Deprecated public class GeneralFieldMappingObjectAdapter<T> extends com.google.gson.TypeAdapter<T>
Deprecated.
deprecated since 8.2.19.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeneralFieldMappingObjectAdapter(Class clazz, Map<String,Type> jsonFields, com.google.gson.FieldNamingPolicy policy)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.google.gson.stream.JsonReader jsonReader)
    Deprecated.
     
    void
    write(com.google.gson.stream.JsonWriter jsonWriter, T t)
    Deprecated.
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeneralFieldMappingObjectAdapter

      public GeneralFieldMappingObjectAdapter(Class clazz, Map<String,Type> jsonFields, com.google.gson.FieldNamingPolicy policy)
      Deprecated.
  • Method Details

    • write

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

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