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