Package 

Class GSONInterfaceAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer , com.google.gson.JsonSerializer

    
    public final class GSONInterfaceAdapter<T extends Object>
     implements JsonSerializer<T>, JsonDeserializer<T>
                        

    Helper class used for serialization/deserialization different Json structures via Gson For instance Vendor is exposed as Interface, but there are differences in JSON structure for TCF1 and TCF2 versions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
      JsonObject serialize(T jsonElement, Type type, JsonSerializationContext jsonSerializationContext)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GSONInterfaceAdapter

        GSONInterfaceAdapter(Class<?> typeClass)
    • Method Detail

      • deserialize

         T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
      • serialize

         JsonObject serialize(T jsonElement, Type type, JsonSerializationContext jsonSerializationContext)