Package picocli
Class CommandLine.BuiltIn.ISO8601TimeConverter
java.lang.Object
picocli.CommandLine.BuiltIn.ISO8601TimeConverter
- All Implemented Interfaces:
CommandLine.ITypeConverter<Object>
- Enclosing class:
CommandLine.BuiltIn
static class CommandLine.BuiltIn.ISO8601TimeConverter
extends Object
implements CommandLine.ITypeConverter<Object>
Converts text in any of the following formats to a
java.sql.Time
: HH:mm
, HH:mm:ss
,
HH:mm:ss.SSS
, HH:mm:ss,SSS
. Other formats result in a ParameterException.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the specified command line argument value to some domain object.private Object
createTime
(long epochMillis)
-
Field Details
-
constructor
-
-
Constructor Details
-
ISO8601TimeConverter
ISO8601TimeConverter(Constructor<?> constructor)
-
-
Method Details
-
convert
Description copied from interface:CommandLine.ITypeConverter
Converts the specified command line argument value to some domain object.- Specified by:
convert
in interfaceCommandLine.ITypeConverter<Object>
- Parameters:
value
- the command line argument String value- Returns:
- the resulting domain object
-
createTime
-