Package DataHandling
Class PatientSerializer
java.lang.Object
DataHandling.PatientSerializer
- All Implemented Interfaces:
ISerializer<Patient>
This class is responsible for serializing and deserializing Patient objects to and from String.
-
Field Summary
Fields inherited from interface DataHandling.ISerializer
SEPARATOR
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PatientSerializer
public PatientSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ISerializer
Serializes the object to a String.- Specified by:
serialize
in interfaceISerializer<Patient>
- 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<Patient>
- Parameters:
data
- The serialized object.- Returns:
- The deserialized object.
-