Class ODataVdmEntityListAdapter<T>

java.lang.Object
com.google.gson.TypeAdapter<List<T>>
com.sap.cloud.sdk.s4hana.datamodel.odata.adapter.ODataVdmEntityListAdapter<T>
Type Parameters:
T - The generic value type.

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

    Constructors
    Constructor
    Description
    ODataVdmEntityListAdapter(com.google.gson.Gson gson, com.google.gson.TypeAdapter<T> entityAdapter)
    For internal use only by data model classes
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.google.gson.stream.JsonReader in)
    For internal use only by data model classes
    void
    write(com.google.gson.stream.JsonWriter out, List<T> entityList)
    For internal use only by data model classes

    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

    • ODataVdmEntityListAdapter

      public ODataVdmEntityListAdapter(@Nonnull com.google.gson.Gson gson, @Nonnull com.google.gson.TypeAdapter<T> entityAdapter)
      For internal use only by data model classes
      Parameters:
      gson - The GSON instance to access serialization and desrialization.
      entityAdapter - The entity type adapter to be used.
  • Method Details

    • read

      @Nullable public List<T> read(@Nonnull com.google.gson.stream.JsonReader in) throws IOException
      For internal use only by data model classes
      Specified by:
      read in class com.google.gson.TypeAdapter<List<T>>
      Throws:
      IOException
    • write

      public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable List<T> entityList) throws IOException
      For internal use only by data model classes
      Specified by:
      write in class com.google.gson.TypeAdapter<List<T>>
      Throws:
      IOException