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