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