Package org.apache.wayang.core.util
Interface JsonSerializer<T>
- All Known Implementing Classes:
AtomicExecution.KeyOrLoadSerializer,AtomicExecutionGroup.Serializer,JsonSerializable.Serializer,PartialExecution.Serializer
public interface JsonSerializer<T>
Alternative to
JsonSerializable: Externalizes serialization logic.-
Method Summary
Modifier and TypeMethodDescriptiondefault Tdeserialize(WayangJsonObj json) Deserializes an object.deserialize(WayangJsonObj json, Class<? extends T> cls) Deserializes an object.Serializes an object.
-
Method Details
-
serialize
Serializes an object.- Parameters:
object- that should be serialized- Returns:
- the serialized object
-
deserialize
Deserializes an object.- Parameters:
json- that should be serialized- Returns:
- the deserialized object
-
deserialize
Deserializes an object.- Parameters:
json- that should be serializedcls- theClassof the object to be created- Returns:
- the deserialized object
-