bundle, ILLEGAL_SN_CHARS, locale, MAX_COUNT_LIMIT, MIN_COUNT_LIMIT, values| Constructor and Description |
|---|
IntegerOption(String shortName,
String longName,
String description,
boolean mandatory,
boolean allowMany)
Creates a new
IntegerOption instance. |
IntegerOption(String shortName,
String longName,
String description,
int minCount,
int maxCount)
Creates a new
IntegerOption instance. |
| Modifier and Type | Method and Description |
|---|---|
Class<Integer> |
getType()
Returns the class type of value this option can take.
|
protected String |
getUsageTypeString()
Returns the option type, for display in the usage message.
|
protected Integer |
parseValue(String arg)
Parses the argument string for an option value.
|
addValue, equals, getDescription, getLongName, getMaxCount, getMinCount, getShortName, getValues, hashCode, isAllowMany, isHidden, isMandatory, requiresValue, setHidden, setMinMaxCounts, toStringpublic IntegerOption(String shortName, String longName, String description, int minCount, int maxCount)
IntegerOption 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 IntegerOption(String shortName, String longName, String description, boolean mandatory, boolean allowMany)
IntegerOption 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 Integer parseValue(String arg) throws OptionException
parseValue in class Option<Integer>arg - string argument from which a value is to be parsedOptionException - if a problem occurs while parsing the argument stringpublic Class<Integer> getType()
Optionprotected String getUsageTypeString()
OptiongetUsageTypeString in class Option<Integer>Copyright © 2015. All rights reserved.