Class CommandLine.BuiltIn.ISO8601TimeConverter
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.BuiltIn.ISO8601TimeConverter
- All Implemented Interfaces:
CommandLine.ITypeConverter<Time>
- Enclosing class:
CommandLine.BuiltIn
static class CommandLine.BuiltIn.ISO8601TimeConverter
extends Object
implements CommandLine.ITypeConverter<Time>
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.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ISO8601TimeConverter
ISO8601TimeConverter()
-
-
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<Time>
- Parameters:
value
- the command line argument String value- Returns:
- the resulting domain object
-