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