Class DateResolver
java.lang.Object
com.mrivanplays.annotationconfig.toml.DateResolver
- All Implemented Interfaces:
com.mrivanplays.annotationconfig.core.serialization.FieldTypeSerializer<Date>
public class DateResolver
extends Object
implements com.mrivanplays.annotationconfig.core.serialization.FieldTypeSerializer<Date>
Type serializer, which is serializing and deserializing the java 8+ obsolete class
This is kept and maintained for backwards compatibility, everyone is encouraged to migrate to the new java time api.
Date
.
This is kept and maintained for backwards compatibility, everyone is encouraged to migrate to the new java time api.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DateResolver
public DateResolver()
-
-
Method Details
-
deserialize
public Date deserialize(com.mrivanplays.annotationconfig.core.serialization.DataObject data, Field field) - Specified by:
deserialize
in interfacecom.mrivanplays.annotationconfig.core.serialization.FieldTypeSerializer<Date>
-
serialize
public com.mrivanplays.annotationconfig.core.serialization.DataObject serialize(Date value, Field field) - Specified by:
serialize
in interfacecom.mrivanplays.annotationconfig.core.serialization.FieldTypeSerializer<Date>
-