Class YearMonthConverter

    • Constructor Detail

      • YearMonthConverter

        public YearMonthConverter()
        Default constructor, constructs a new object.
    • Method Detail

      • deserialize

        public YearMonth deserialize​(com.google.gson.JsonElement json,
                                     Type type,
                                     com.google.gson.JsonDeserializationContext jsonDeserializationContext)
                              throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<YearMonth>
        Throws:
        com.google.gson.JsonParseException
      • serialize

        public com.google.gson.JsonElement serialize​(YearMonth src,
                                                     Type type,
                                                     com.google.gson.JsonSerializationContext jsonSerializationContext)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<YearMonth>