Class ScalarSerializer<T>

java.lang.Object
ninja.leaping.configurate.objectmapping.serialize.ScalarSerializer<T>
Type Parameters:
T - The object type to serialize
All Implemented Interfaces:
TypeSerializer<T>

public abstract class ScalarSerializer<T>
extends Object
implements TypeSerializer<T>
Serialize a value that can be represented as a scalar value within a node. Implementations must be able to serialize when one of the accepted types is a String, and may support any other types as desired.

When serializing to a node, null values will be passed through directly. If the type serialized by this serializer is one of the native types of the backing node, it will be written directly to the node without any transformation.

Any serialized value must be deserializable by the same serializer..