Package com.sap.cloud.sdk.typeconverter
Class TypeConverterGsonDeserializer<T>
java.lang.Object
com.sap.cloud.sdk.typeconverter.TypeConverterGsonDeserializer<T>
- Type Parameters:
T
- The type of the object created by deserialization.
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>
public class TypeConverterGsonDeserializer<T>
extends Object
implements com.google.gson.JsonDeserializer<T>
Implementation of
JsonDeserializer
deserializing a JsonPrimitive
to an object of type T
using
the given TypeConverter
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
-
Constructor Details
-
TypeConverterGsonDeserializer
-
-
Method Details
-
deserialize
@Nullable public T deserialize(@Nonnull com.google.gson.JsonElement json, @Nonnull Type typeOfT, @Nonnull com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<T>
- Throws:
com.google.gson.JsonParseException
-