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 Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
com.google.gson.JsonElement
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
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 >