Package kong.unirest.gson
Class GsonObjectMapper.DateTimeAdapter<T>
- java.lang.Object
-
- kong.unirest.gson.GsonObjectMapper.DateTimeAdapter<T>
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>
,com.google.gson.JsonSerializer<T>
- Direct Known Subclasses:
GsonObjectMapper.CalendarSerializer
,GsonObjectMapper.DateAdapter
,GsonObjectMapper.LocalDateAdapter
,GsonObjectMapper.LocalDateTimeAdapter
,GsonObjectMapper.ZonedDateAdapter
- Enclosing class:
- GsonObjectMapper
private abstract static class GsonObjectMapper.DateTimeAdapter<T> extends java.lang.Object implements com.google.gson.JsonSerializer<T>, com.google.gson.JsonDeserializer<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DateTimeAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
(package private) abstract T
from(java.lang.Long millies)
(package private) abstract T
from(java.time.temporal.TemporalAccessor dt)
com.google.gson.JsonElement
serialize(T dateObj, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Method Detail
-
from
abstract T from(java.lang.Long millies)
-
from
abstract T from(java.time.temporal.TemporalAccessor dt)
-
deserialize
public T deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<T>
- Throws:
com.google.gson.JsonParseException
-
-