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