Package net.handle.hdllib
Class GsonUtility.InterfaceGsonTypeAdapter
java.lang.Object
net.handle.hdllib.GsonUtility.InterfaceGsonTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Interface>
,com.google.gson.JsonSerializer<Interface>
- Enclosing class:
GsonUtility
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InterfaceGsonTypeAdapter
public InterfaceGsonTypeAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Interface intf, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Interface>
-
deserialize
public Interface deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Interface>
- Throws:
com.google.gson.JsonParseException
-