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