Class ByteTransformer

java.lang.Object
de.craftsblock.craftsnet.api.transformers.builtin.ByteTransformer
All Implemented Interfaces:
Transformable<Byte,String>

public class ByteTransformer extends Object implements 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

      public Byte transform(String parameter)
      Transforms the provided string parameter into a Byte object.
      Specified by:
      transform in interface Transformable<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.