public static class CmdLineParser.Option.DoubleOption extends CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption
Constructor and Description |
---|
DoubleOption(char shortForm,
String longForm)
Instantiates a new double option.
|
DoubleOption(String longForm)
Instantiates a new double option.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
parseValue(String arg,
Locale locale)
Override to extract and convert an option value passed on the command-line.
|
getValue, longForm, shortForm, wantsValue
public DoubleOption(char shortForm, String longForm)
shortForm
- the short formlongForm
- the long formpublic DoubleOption(String longForm)
longForm
- the long formprotected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException
CmdLineParser.Option
parseValue
in class CmdLineParser.Option
arg
- the arglocale
- the localeCmdLineParser.IllegalOptionValueException
- the illegal option value exceptionCopyright © 2009–2020 Jeremy Landis. All rights reserved.