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