Class GeneralInterfaceAdapter<INTERFACE extends GsonSerializable>
- java.lang.Object
-
- org.processmining.placebasedlpmdiscovery.model.exporting.gson.adapters.GeneralInterfaceAdapter<INTERFACE>
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<INTERFACE>,com.google.gson.JsonSerializer<INTERFACE>
public class GeneralInterfaceAdapter<INTERFACE extends GsonSerializable> extends java.lang.Object implements com.google.gson.JsonSerializer<INTERFACE>, com.google.gson.JsonDeserializer<INTERFACE>
-
-
Constructor Summary
Constructors Constructor Description GeneralInterfaceAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INTERFACEdeserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)java.lang.Class<INTERFACE>getClassInstance(java.lang.String className)com.google.gson.JsonElementserialize(INTERFACE src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
deserialize
public INTERFACE deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<INTERFACE extends GsonSerializable>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(INTERFACE src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<INTERFACE extends GsonSerializable>
-
getClassInstance
public java.lang.Class<INTERFACE> getClassInstance(java.lang.String className)
-
-