Class GsonCustomFieldAdapter

java.lang.Object
com.google.gson.TypeAdapter<Object>
com.sap.cloud.sdk.datamodel.odatav4.adapter.GsonCustomFieldAdapter

public class GsonCustomFieldAdapter extends com.google.gson.TypeAdapter<Object>
For internal use only by data model classes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GsonCustomFieldAdapter(com.google.gson.Gson gson)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, Object value)
     

    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

    • GsonCustomFieldAdapter

      public GsonCustomFieldAdapter(@Nonnull com.google.gson.Gson gson)
  • Method Details

    • write

      public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable Object value)
      Specified by:
      write in class com.google.gson.TypeAdapter<Object>
    • read

      @Nullable public Object read(@Nonnull com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Object>
      Throws:
      IOException