Class FloatTransformer

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

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

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