Class Point2dSerializer
java.lang.Object
dev.crafty.core.geometry.serializers.Point2dSerializer
- All Implemented Interfaces:
ConfigSerializer<Point2d>
- Since:
- 1.0.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.crafty.core.config.serializer.ConfigSerializer
ConfigSerializer.SerializationArgs<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(SectionWrapper section, String path) Deserialize an object from a configuration section.getType()
Get the type of object this serializer handles.void
Serializes a Point2d object into the given configuration section at the specified path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.crafty.core.config.serializer.ConfigSerializer
getSerializer, save
-
Constructor Details
-
Point2dSerializer
public Point2dSerializer()
-
-
Method Details
-
serialize
Serializes a Point2d object into the given configuration section at the specified path.- Specified by:
serialize
in interfaceConfigSerializer<Point2d>
- Parameters:
args
- The serialization arguments
-
deserialize
Description copied from interface:ConfigSerializer
Deserialize an object from a configuration section.- Specified by:
deserialize
in interfaceConfigSerializer<Point2d>
- Parameters:
section
- The configuration section to deserialize frompath
- The path within the section to deserialize from- Returns:
- The deserialized object
-
getType
Description copied from interface:ConfigSerializer
Get the type of object this serializer handles.- Specified by:
getType
in interfaceConfigSerializer<Point2d>
- Returns:
- The class of the object type
-