Class FloatConverter

java.lang.Object
com.github.joschi.jadconfig.converters.FloatConverter
All Implemented Interfaces:
Converter<Float>

public class FloatConverter extends Object implements Converter<Float>
Converter for type Float
Author:
jschalanda
  • Constructor Details

    • FloatConverter

      public FloatConverter()
  • Method Details

    • convertFrom

      public Float convertFrom(String value)
      Returns a Float instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<Float>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      A Float instance representing the configuration parameter's value
    • convertTo

      public String convertTo(Float value)
      Returns a String instance representing the configuration parameter's value.
      Specified by:
      convertTo in interface Converter<Float>
      Parameters:
      value - The configuration parameter's Float value
      Returns:
      A String instance representing the configuration parameter's typed value