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 Details

  • Method Details

    • setContextContainer

      public VarMatrixAdaptor setContextContainer​(ContextContainer contextContainer)
    • serialize

      public com.google.gson.JsonElement serialize​(VarMatrix src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.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 interface com.google.gson.JsonDeserializer<VarMatrix>
      Throws:
      com.google.gson.JsonParseException