public static class CmdLineParser.Option.BooleanOption extends CmdLineParser.Option<Boolean>
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption| Constructor and Description |
|---|
BooleanOption(char shortForm,
String longForm) |
BooleanOption(String longForm) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getDefaultValue()
Override to define default value returned by getValue if option does not want
a value
|
Boolean |
parseValue(String arg,
Locale lcoale)
Override to extract and convert an option value passed on the command-line
|
getValue, longForm, shortForm, wantsValuepublic BooleanOption(char shortForm,
String longForm)
public BooleanOption(String longForm)
public Boolean parseValue(String arg, Locale lcoale)
CmdLineParser.OptionparseValue in class CmdLineParser.Option<Boolean>public Boolean getDefaultValue()
CmdLineParser.OptiongetDefaultValue in class CmdLineParser.Option<Boolean>Copyright © 2019 David R. Smith. All rights reserved.