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