Class ODataNumberSerializer

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.adapter.ODataNumberSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Number>

public class ODataNumberSerializer extends Object implements com.google.gson.JsonSerializer<Number>
GSON serializer that transforms numbers to their JSON representation according to the OData V2 standard. Meant for internal use only.
  • Constructor Details

    • ODataNumberSerializer

      public ODataNumberSerializer()
  • Method Details

    • serialize

      @Nonnull public com.google.gson.JsonElement serialize(@Nonnull Number src, @Nonnull Type typeOfSrc, @Nonnull com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Number>