Package dev.plex.util.adapter
Class ZonedDateTimeSerializer
java.lang.Object
dev.plex.util.adapter.ZonedDateTimeSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<ZonedDateTime>
public class ZonedDateTimeSerializer
extends Object
implements com.google.gson.JsonSerializer<ZonedDateTime>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElement
serialize
(ZonedDateTime src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Field Details
-
TIMEZONE
-
-
Constructor Details
-
ZonedDateTimeSerializer
public ZonedDateTimeSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(ZonedDateTime src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ZonedDateTime>
-