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