Package org.notima.util.json
Class JsonInterfaceAdapter<T>
java.lang.Object
org.notima.util.json.JsonInterfaceAdapter<T>
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>,com.google.gson.JsonSerializer<T>
public class JsonInterfaceAdapter<T>
extends Object
implements com.google.gson.JsonSerializer<T>, com.google.gson.JsonDeserializer<T>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonInterfaceAdapter
public JsonInterfaceAdapter()
-
-
Method Details
-
deserialize
public T deserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<T>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(T src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<T>
-