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