Class ShortTransformer
java.lang.Object
de.craftsblock.craftsnet.api.transformers.builtin.ShortTransformer
- All Implemented Interfaces:
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
Transforms the provided string parameter into a Short object.- Specified by:
transformin interfaceTransformable<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.
-