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