Package com.walkfares.calendar.adaptor
Class ExpiryRuleAdaptor
java.lang.Object
com.walkfares.calendar.adaptor.ExpiryRuleAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ExpiryRule>
,com.google.gson.JsonSerializer<ExpiryRule>
public class ExpiryRuleAdaptor extends Object implements com.google.gson.JsonSerializer<ExpiryRule>, com.google.gson.JsonDeserializer<ExpiryRule>
-
Constructor Summary
Constructors Constructor Description ExpiryRuleAdaptor()
-
Method Summary
Modifier and Type Method Description ExpiryRule
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(ExpiryRule src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
ExpiryRuleAdaptor
public ExpiryRuleAdaptor()
-
-
Method Details
-
deserialize
public ExpiryRule deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ExpiryRule>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(ExpiryRule src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ExpiryRule>
-