Package com.walkfares.odsl.var.adaptor
Class VarCurveAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarCurveAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarCurve>
,com.google.gson.JsonSerializer<VarCurve>
public class VarCurveAdaptor extends Object implements com.google.gson.JsonDeserializer<VarCurve>, com.google.gson.JsonSerializer<VarCurve>
-
Constructor Summary
Constructors Constructor Description VarCurveAdaptor()
-
Method Summary
-
Constructor Details
-
VarCurveAdaptor
public VarCurveAdaptor()
-
-
Method Details
-
deserialize
public VarCurve 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<VarCurve>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarCurve src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarCurve>
-