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