Package com.walkfares.odsl.var.adaptor
Class VarTimeSeriesAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarTimeSeriesAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarTimeSeries>
,com.google.gson.JsonSerializer<VarTimeSeries>
public class VarTimeSeriesAdaptor extends Object implements com.google.gson.JsonDeserializer<VarTimeSeries>, com.google.gson.JsonSerializer<VarTimeSeries>
-
Constructor Summary
Constructors Constructor Description VarTimeSeriesAdaptor()
-
Method Summary
Modifier and Type Method Description VarTimeSeries
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(VarTimeSeries src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
VarTimeSeriesAdaptor
setContextContainer(ContextContainer contextContainer)
-
Constructor Details
-
VarTimeSeriesAdaptor
public VarTimeSeriesAdaptor()
-
-
Method Details
-
setContextContainer
-
deserialize
public VarTimeSeries deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<VarTimeSeries>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarTimeSeries src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarTimeSeries>
-