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.LocalDateTime deserialize​(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)  
    com.google.gson.JsonElement serialize​(java.time.LocalDateTime localDateTime, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      deserialize in interface com.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:
      serialize in interface com.google.gson.JsonSerializer<java.time.LocalDateTime>