public static class CmdLineParser.Option.IntegerOption extends CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption| Constructor and Description |
|---|
IntegerOption(char shortForm,
String longForm)
Instantiates a new integer option.
|
IntegerOption(String longForm)
Instantiates a new integer 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, wantsValuepublic IntegerOption(char shortForm,
String longForm)
shortForm - the short formlongForm - the long formpublic IntegerOption(String longForm)
longForm - the long formprotected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException
CmdLineParser.OptionparseValue in class CmdLineParser.Optionarg - the arglocale - the localeCmdLineParser.IllegalOptionValueException - the illegal option value exceptionCopyright © 2009–2016 Jeremy Landis. All rights reserved.