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