Class GsonUtility.ResponseGsonTypeHierarchyAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonSerializer<AbstractResponse>
    Enclosing class:
    GsonUtility

    public static class GsonUtility.ResponseGsonTypeHierarchyAdapter
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<AbstractResponse>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.JsonElement serialize​(AbstractResponse resp, 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

      • ResponseGsonTypeHierarchyAdapter

        public ResponseGsonTypeHierarchyAdapter()
    • Method Detail

      • serialize

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