Class PrimitiveSerializers.ByteSerializer
java.lang.Object
tech.guilhermekaua.spigotboot.config.serialization.scalars.PrimitiveSerializers.ByteSerializer
- All Implemented Interfaces:
TypeSerializer<Byte>
- Enclosing class:
- PrimitiveSerializers
public static class PrimitiveSerializers.ByteSerializer
extends Object
implements TypeSerializer<Byte>
Serializer for Byte values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(@NotNull ConfigNode node, @NotNull Class<Byte> type) Deserializes a configuration node to the target type.voidserialize(@NotNull Byte 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
-
ByteSerializer
public ByteSerializer()
-
-
Method Details
-
deserialize
Description copied from interface:TypeSerializerDeserializes a configuration node to the target type.- Specified by:
deserializein interfaceTypeSerializer<Byte>- 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<Byte>- Parameters:
value- the value to serializenode- the target node
-