Package DataHandling
Class StaffSerializer
java.lang.Object
DataHandling.StaffSerializer
- All Implemented Interfaces:
ISerializer<Staff>
This class is responsible for serializing and deserializing Staff objects to and from String.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StaffSerializer
public StaffSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ISerializer
Serializes the object to a String.- Specified by:
serialize
in interfaceISerializer<Staff>
- Parameters:
object
- The object to serialize.- Returns:
- The serialized object.
-
deserialize
Description copied from interface:ISerializer
Deserializes the String to an object.- Specified by:
deserialize
in interfaceISerializer<Staff>
- Parameters:
data
- The serialized object.- Returns:
- The deserialized object.
-