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