Package overit.geocall.util.gson
Class DateObjects
java.lang.Object
overit.geocall.util.gson.DateObjects
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Date>,com.google.gson.JsonSerializer<Date>,Adapter.Cast<Date>
public class DateObjects
extends Object
implements com.google.gson.JsonSerializer<Date>, com.google.gson.JsonDeserializer<Date>, Adapter.Cast<Date>
Class that manages the serialization and deserialization of a DateObject
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateObjects
public DateObjects()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Date d, Type type, com.google.gson.JsonSerializationContext jsc) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<Date>
-
deserialize
public Date deserialize(com.google.gson.JsonElement je, Type type, com.google.gson.JsonDeserializationContext jdc) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Date>- Throws:
com.google.gson.JsonParseException
-
cast
- Specified by:
castin interfaceAdapter.Cast<Date>
-