Package kong.unirest.modules.gson
Class GsonObjectMapper.DateTimeAdapter<T>
- java.lang.Object
-
- kong.unirest.modules.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 privateDateTimeAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tdeserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)(package private) abstract Tfrom(java.lang.Long millies)(package private) abstract Tfrom(java.time.temporal.TemporalAccessor dt)com.google.gson.JsonElementserialize(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:
deserializein interfacecom.google.gson.JsonDeserializer<T>- Throws:
com.google.gson.JsonParseException
-
-