bundle, ILLEGAL_SN_CHARS, locale, MAX_COUNT_LIMIT, MIN_COUNT_LIMIT, values| Constructor and Description |
|---|
DoubleOption(String shortName,
String longName,
String description,
boolean mandatory,
boolean allowMany)
Creates a new
DoubleOption instance. |
DoubleOption(String shortName,
String longName,
String description,
int minCount,
int maxCount)
Creates a new
DoubleOption instance. |
| Modifier and Type | Method and Description |
|---|---|
Class<Double> |
getType()
Returns the class type of value this option can take.
|
protected Double |
parseValue(String arg)
Parses the argument string for an option value.
|
addValue, equals, getDescription, getLongName, getMaxCount, getMinCount, getShortName, getUsageTypeString, getValues, hashCode, isAllowMany, isHidden, isMandatory, requiresValue, setHidden, setMinMaxCounts, toStringpublic DoubleOption(String shortName, String longName, String description, int minCount, int maxCount)
DoubleOption instance.shortName - short name of the option (e.g. -?)longName - long name of the option (e.g. --help)description - helpful description of the option (printed for usage message)minCount - minimum number of occurrences required for this optionmaxCount - maximum number of occurrences required for this optionpublic DoubleOption(String shortName, String longName, String description, boolean mandatory, boolean allowMany)
DoubleOption instance.shortName - short name of the option (e.g. -?)longName - long name of the option (e.g. --help)description - helpful description of the option (printed for usage message)mandatory - whether this option must be specifiedallowMany - whether this option can take more than one value (i.e. be specified more than once)protected Double parseValue(String arg) throws OptionException
parseValue in class Option<Double>arg - string argument from which a value is to be parsedOptionException - if a problem occurs while parsing the argument stringCopyright © 2017. All rights reserved.