Class DoubleParam

All Implemented Interfaces:
OneArgParam, Param

public class DoubleParam extends BasicOneArgParam<Double>
DoubleParam is a Param that accepts double arguments. It defaults to NaN if another default is not selected.
  • Constructor Details

  • Method Details

    • convertArg

      protected Double convertArg(String param, String arg) throws ArgParserException
      Description copied from class: BasicOneArgParam
      A conversion method to get a T from a string. All subclasses must define this for the type they handle.
      Specified by:
      convertArg in class BasicOneArgParam<Double>
      Parameters:
      param - the name of the parameter found on the command line. In some cases it might affect conversion, but it is also good for error messages.
      arg - the argument to convert to a type T.
      Returns:
      the converted argument.
      Throws:
      ArgParserException