Class BigDecimalAdapter
java.lang.Object
com.google.gson.TypeAdapter<BigDecimal>
com.sap.cloud.sdk.datamodel.odata.client.adapter.BigDecimalAdapter
GSON type adapter for parsing and serialization of
BigDecimal
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader in) For internal use only by data model classesvoid
write
(com.google.gson.stream.JsonWriter out, BigDecimal entityValue) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
BigDecimalAdapter
public BigDecimalAdapter()
-
-
Method Details
-
read
For internal use only by data model classes- Specified by:
read
in classcom.google.gson.TypeAdapter<BigDecimal>
- Throws:
IOException
-
write
public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable BigDecimal entityValue) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<BigDecimal>
- Throws:
IOException
-