Class DoubleTransformer

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

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

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