Class DurationDeserializer
java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.DurationDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Duration>
@Deprecated
public class DurationDeserializer
extends Object
implements com.google.gson.JsonDeserializer<Duration>
Deprecated.
This module will be discontinued, along with its classes and methods.
Helper class used for parsing durations measured by the ERP.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Deprecated.Parses and converts a string, provided in theJsonElement
, from microseconds toDuration
.
-
Constructor Details
-
DurationDeserializer
public DurationDeserializer()Deprecated.
-
-
Method Details
-
deserialize
@Nullable public Duration deserialize(@Nonnull com.google.gson.JsonElement json, @Nonnull Type typeOfT, @Nonnull com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException Deprecated.Parses and converts a string, provided in theJsonElement
, from microseconds toDuration
.
-