Class AbstractMTAdapter

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

    public class AbstractMTAdapter
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<AbstractMT>, com.google.gson.JsonDeserializer<AbstractMT>
    Json serialization for AbstractMT and subclasses using Gson.
    Since:
    7.10.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbstractMT deserialize​(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)  
      com.google.gson.JsonElement serialize​(AbstractMT src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)  
      • Methods inherited from class java.lang.Object

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

      • AbstractMTAdapter

        public AbstractMTAdapter()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(AbstractMT src,
                                                     java.lang.reflect.Type typeOfSrc,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<AbstractMT>
      • deserialize

        public AbstractMT deserialize​(com.google.gson.JsonElement jsonElement,
                                      java.lang.reflect.Type type,
                                      com.google.gson.JsonDeserializationContext jsonDeserializationContext)
                               throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<AbstractMT>
        Throws:
        com.google.gson.JsonParseException