Class YearMonthTypeAdapter

java.lang.Object
com.redis.om.spring.serialization.gson.YearMonthTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<YearMonth>, com.google.gson.JsonSerializer<YearMonth>

public class YearMonthTypeAdapter extends Object implements com.google.gson.JsonSerializer<YearMonth>, com.google.gson.JsonDeserializer<YearMonth>
  • Constructor Details

    • YearMonthTypeAdapter

      public YearMonthTypeAdapter()
  • Method Details

    • getInstance

      public static YearMonthTypeAdapter getInstance()
    • serialize

      public com.google.gson.JsonElement serialize(YearMonth yearMonth, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<YearMonth>
    • deserialize

      public YearMonth deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<YearMonth>
      Throws:
      com.google.gson.JsonParseException