Package cronapi.util
Class GsonUTCDateAdapter
java.lang.Object
cronapi.util.GsonUTCDateAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Date>,com.google.gson.JsonSerializer<Date>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElement
-
Constructor Details
-
GsonUTCDateAdapter
public GsonUTCDateAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Date date, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<Date>
-
deserialize
public Date deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Date>
-