Module colesico.framework.restlet
Class GsonLocalDateTime
java.lang.Object
colesico.framework.restlet.teleapi.gson.GsonLocalDateTime
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<java.time.LocalDateTime>,com.google.gson.JsonSerializer<java.time.LocalDateTime>
public class GsonLocalDateTime
extends java.lang.Object
implements com.google.gson.JsonSerializer<java.time.LocalDateTime>, com.google.gson.JsonDeserializer<java.time.LocalDateTime>
-
Constructor Summary
Constructors Constructor Description GsonLocalDateTime() -
Method Summary
Modifier and Type Method Description java.time.LocalDateTimedeserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(java.time.LocalDateTime localDateTime, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
GsonLocalDateTime
public GsonLocalDateTime()
-
-
Method Details
-
deserialize
public java.time.LocalDateTime 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<java.time.LocalDateTime>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(java.time.LocalDateTime localDateTime, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<java.time.LocalDateTime>
-