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