Class GSONSerializer_LocalDateTime

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<java.time.LocalDateTime>, com.google.gson.JsonSerializer<java.time.LocalDateTime>

    public class GSONSerializer_LocalDateTime
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<java.time.LocalDateTime>, com.google.gson.JsonDeserializer<java.time.LocalDateTime>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.reflect.Type _TYPE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.LocalDateTime deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)  
      com.google.gson.JsonElement serialize​(java.time.LocalDateTime src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _TYPE

        public static final java.lang.reflect.Type _TYPE
    • Constructor Detail

      • GSONSerializer_LocalDateTime

        public GSONSerializer_LocalDateTime()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(java.time.LocalDateTime src,
                                                     java.lang.reflect.Type typeOfSrc,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<java.time.LocalDateTime>
      • deserialize

        public java.time.LocalDateTime deserialize​(com.google.gson.JsonElement json,
                                                   java.lang.reflect.Type typeOfT,
                                                   com.google.gson.JsonDeserializationContext context)
                                            throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<java.time.LocalDateTime>
        Throws:
        com.google.gson.JsonParseException