Class PrimitiveSerializers.BooleanSerializer
java.lang.Object
tech.guilhermekaua.spigotboot.config.serialization.scalars.PrimitiveSerializers.BooleanSerializer
- All Implemented Interfaces:
TypeSerializer<Boolean>
- Enclosing class:
- PrimitiveSerializers
public static class PrimitiveSerializers.BooleanSerializer
extends Object
implements TypeSerializer<Boolean>
Serializer for Boolean values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(@NotNull ConfigNode node, @NotNull Class<Boolean> type) Deserializes a configuration node to the target type.voidserialize(@NotNull Boolean value, @NotNull MutableConfigNode node) Serializes a value to a configuration node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.guilhermekaua.spigotboot.config.serialization.TypeSerializer
canHandle
-
Constructor Details
-
BooleanSerializer
public BooleanSerializer()
-
-
Method Details
-
deserialize
public Boolean deserialize(@NotNull @NotNull ConfigNode node, @NotNull @NotNull Class<Boolean> type) Description copied from interface:TypeSerializerDeserializes a configuration node to the target type.- Specified by:
deserializein interfaceTypeSerializer<Boolean>- Parameters:
node- the source nodetype- the target type class- Returns:
- the deserialized value
-
serialize
Description copied from interface:TypeSerializerSerializes a value to a configuration node.- Specified by:
serializein interfaceTypeSerializer<Boolean>- Parameters:
value- the value to serializenode- the target node
-