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