Class StringTypeAdaptor
java.lang.Object
com.amilesend.omdb.client.parse.adapters.StringTypeAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<String>
GSON adapter to format and serializes
String objects.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context)
-
Field Details
-
NOT_AVAILABLE
OMDb returns "N/A" for undefined values.- See Also:
-
-
Constructor Details
-
StringTypeAdaptor
public StringTypeAdaptor()
-
-
Method Details
-
deserialize
public String deserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<String>- Throws:
com.google.gson.JsonParseException
-