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