bundle, ILLEGAL_SN_CHARS, locale, MAX_COUNT_LIMIT, MIN_COUNT_LIMIT, values| Constructor and Description |
|---|
LocalDateOption(String shortName,
String longName,
String description,
boolean mandatory,
boolean allowMany) |
LocalDateOption(String shortName,
String longName,
String description,
int minCount,
int maxCount) |
| Modifier and Type | Method and Description |
|---|---|
DateTimeFormatter |
getDateFormat() |
Class<LocalDate> |
getType()
Returns the class type of value this option can take.
|
static void |
main(String[] args) |
protected LocalDate |
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 LocalDateOption(String shortName, String longName, String description, boolean mandatory, boolean allowMany)
public Class<LocalDate> getType()
Optionprotected LocalDate parseValue(String arg) throws OptionException
OptionInteger instance representing 123).parseValue in class Option<LocalDate>arg - string argument from which a value is to be parsedOptionException - if a problem occurs while parsing the argument stringpublic DateTimeFormatter getDateFormat()
DateFormat instance used to parse dates.public static void main(String[] args) throws OptionException
OptionExceptionCopyright © 2015. All rights reserved.