Class DateJsonSerializer
- java.lang.Object
-
- org.eclipse.keyple.core.util.json.DateJsonSerializer
-
- All Implemented Interfaces:
com.google.gson.JsonSerializer<java.util.Date>
public class DateJsonSerializer extends java.lang.Object implements com.google.gson.JsonSerializer<java.util.Date>
JSON serializer of aDate
to a string in ISO 8601 format.- Since:
- 2.2.0
-
-
Constructor Summary
Constructors Constructor Description DateJsonSerializer()
Builds a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElement
serialize(java.util.Date data, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-