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