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