public class MonthDayConverter extends AbstractBaseConverter<MonthDay>
String into a MonthDay.
For a description of the format, see MonthDay.parse(CharSequence).
Example:
@Parameter(names = { "--monthDay" }, converter = MonthDayConverter.class)
private MonthDay monthDay;
MonthDay,
MonthDay.parse(CharSequence)failOnNull, targetClass| Constructor and Description |
|---|
MonthDayConverter(String optionName)
Constructs a converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected MonthDay |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURIpublic MonthDayConverter(String optionName)
optionName - The option name, may be null.protected MonthDay convertImpl(String value)
AbstractBaseConverterconvertImpl in class AbstractBaseConverter<MonthDay>value - the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0