Package net.handle.hdllib
Class GsonUtility.ResponseGsonTypeHierarchyAdapter
java.lang.Object
net.handle.hdllib.GsonUtility.ResponseGsonTypeHierarchyAdapter
- All Implemented Interfaces:
com.google.gson.JsonSerializer<AbstractResponse>
- Enclosing class:
GsonUtility
public static class GsonUtility.ResponseGsonTypeHierarchyAdapter
extends Object
implements com.google.gson.JsonSerializer<AbstractResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElement
serialize
(AbstractResponse resp, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
ResponseGsonTypeHierarchyAdapter
public ResponseGsonTypeHierarchyAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(AbstractResponse resp, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<AbstractResponse>
-