Package coneforest.cli
Class OptionDouble
- java.lang.Object
-
- coneforest.cli.Option
-
- coneforest.cli.OptionWithArg<T>
-
- coneforest.cli.OptionHolder<Double>
-
- coneforest.cli.OptionDouble
-
public class OptionDouble extends OptionHolder<Double>
-
-
Constructor Summary
Constructors Constructor Description OptionDouble(String names)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
parseArg(String arg)
Parses an argument and returns an object.-
Methods inherited from class coneforest.cli.OptionHolder
getValue, handle
-
-
-
-
Constructor Detail
-
OptionDouble
public OptionDouble(String names)
-
-
Method Detail
-
parseArg
public Double parseArg(String arg) throws ProcessingException
Description copied from class:OptionHolder
Parses an argument and returns an object.- Specified by:
parseArg
in classOptionHolder<Double>
- Parameters:
arg
- an argument.- Returns:
- an object.
- Throws:
ProcessingException
- when parse error occurs.
-
-