- All Implemented Interfaces:
com.google.gson.JsonSerializer<T>
public class InterfaceSerializer<T>
extends Object
implements com.google.gson.JsonSerializer<T>
-
-
Constructor Summary
Constructors
-
Method Summary
com.google.gson.JsonElement
serialize(T src,
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
-
Field Details
-
PROPERTY_TYPE
public static final String PROPERTY_TYPE
- See Also:
-
-
PROPERTY_DATA
public static final String PROPERTY_DATA
- See Also:
-
-
Constructor Details
-
InterfaceSerializer
public InterfaceSerializer()
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(T src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<T>
-