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