Package de.xima.fc.gson
Class InterfaceSerializerTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<ISerializableInterface>
de.xima.fc.gson.InterfaceSerializerTypeAdapter
public class InterfaceSerializerTypeAdapter
extends com.google.gson.TypeAdapter<ISerializableInterface>
GSON type adapter for (de-)serializing interfaces marked with
ISerializableInterface
.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader in) void
write
(com.google.gson.stream.JsonWriter out, ISerializableInterface value) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
InterfaceSerializerTypeAdapter
public InterfaceSerializerTypeAdapter(com.google.gson.Gson gson)
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, ISerializableInterface value) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<ISerializableInterface>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<ISerializableInterface>
- Throws:
IOException
-