Package kong.unirest.modules.gson
Class GsonObjectMapper.CalendarSerializer
java.lang.Object
kong.unirest.modules.gson.GsonObjectMapper.DateTimeAdapter<Calendar>
kong.unirest.modules.gson.GsonObjectMapper.CalendarSerializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Calendar>
,com.google.gson.JsonSerializer<Calendar>
- Enclosing class:
GsonObjectMapper
private static class GsonObjectMapper.CalendarSerializer
extends GsonObjectMapper.DateTimeAdapter<Calendar>
-
Field Summary
Fields inherited from class kong.unirest.modules.gson.GsonObjectMapper.DateTimeAdapter
FORMATS, FORMATTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Calendar
(package private) Calendar
from
(TemporalAccessor dt) com.google.gson.JsonElement
serialize
(Calendar calendar, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) private ZonedDateTime
Methods inherited from class kong.unirest.modules.gson.GsonObjectMapper.DateTimeAdapter
deserialize
-
Constructor Details
-
CalendarSerializer
private CalendarSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Calendar calendar, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Calendar>
- Overrides:
serialize
in classGsonObjectMapper.DateTimeAdapter<Calendar>
-
from
- Specified by:
from
in classGsonObjectMapper.DateTimeAdapter<Calendar>
-
from
- Specified by:
from
in classGsonObjectMapper.DateTimeAdapter<Calendar>
-
toZonedInstance
-