Package org.apache.wayang.core.util
Class JsonSerializable.Serializer<T extends JsonSerializable>
- java.lang.Object
-
- org.apache.wayang.core.util.JsonSerializable.Serializer<T>
-
- All Implemented Interfaces:
JsonSerializer<T>
- Enclosing interface:
- JsonSerializable
public static class JsonSerializable.Serializer<T extends JsonSerializable> extends java.lang.Object implements JsonSerializer<T>
AJsonSerializerimplementation to serializeJsonSerializables.
-
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(WayangJsonObj json, java.lang.Class<? extends T> cls)Deserializes an object.WayangJsonObjserialize(T serializable)Serializes an object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wayang.core.util.JsonSerializer
deserialize
-
-
-
-
Method Detail
-
serialize
public WayangJsonObj serialize(T serializable)
Description copied from interface:JsonSerializerSerializes an object.- Specified by:
serializein interfaceJsonSerializer<T extends JsonSerializable>- Parameters:
serializable- that should be serialized- Returns:
- the serialized object
-
deserialize
public T deserialize(WayangJsonObj json, java.lang.Class<? extends T> cls)
Description copied from interface:JsonSerializerDeserializes an object.- Specified by:
deserializein interfaceJsonSerializer<T extends JsonSerializable>- Parameters:
json- that should be serializedcls- theClassof the object to be created- Returns:
- the deserialized object
-
-