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