Class DoubleConverter

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

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

    • DoubleConverter

      public DoubleConverter()
  • Method Details

    • convertFrom

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

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