Class ShortTransformer

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

public class ShortTransformer extends Object implements Transformable<Short,String>
A transformer class for converting a string representation of a short value to a Short object. Implements the Transformable interface.
Since:
3.0.2-SNAPSHOT
See Also:
  • Constructor Details

    • ShortTransformer

      public ShortTransformer()
  • Method Details

    • transform

      public Short transform(String parameter)
      Transforms the provided string parameter into a Short object.
      Specified by:
      transform in interface Transformable<Short,String>
      Parameters:
      parameter - The string representation of the short value.
      Returns:
      The Short object representing the transformed value.
      Throws:
      NotTransformableException - If the parameter cannot be transformed to a Short.