Class YearMonthJsonAdapter
- java.lang.Object
-
- com.prowidesoftware.swift.model.mx.adapters.YearMonthJsonAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<java.time.YearMonth>
,com.google.gson.JsonSerializer<java.time.YearMonth>
public class YearMonthJsonAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<java.time.YearMonth>, com.google.gson.JsonDeserializer<java.time.YearMonth>
This adapter enables accepting YearMonth time Json format.- Since:
- 10.0.1
-
-
Constructor Summary
Constructors Constructor Description YearMonthJsonAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.YearMonth
deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
com.google.gson.JsonElement
serialize(java.time.YearMonth yearMonth, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(java.time.YearMonth yearMonth, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<java.time.YearMonth>
-
deserialize
public java.time.YearMonth deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<java.time.YearMonth>
-
-