Class ByteTransformer
java.lang.Object
de.craftsblock.craftsnet.api.transformers.builtin.ByteTransformer
- All Implemented Interfaces:
Transformable<Byte,String>
A transformer class for converting a string representation of a byte value to a Byte object.
Implements the
Transformable interface.- Since:
- 3.0.2-SNAPSHOT
- See Also:
-
Constructor Details
-
ByteTransformer
public ByteTransformer()
-
-
Method Details
-
transform
Transforms the provided string parameter into a Byte object.- Specified by:
transformin interfaceTransformable<Byte,String> - Parameters:
parameter- The string representation of the byte value.- Returns:
- The Byte object representing the transformed value.
- Throws:
NotTransformableException- If the parameter cannot be transformed to a Byte.
-