Class CommandLine.BuiltIn.ISO8601DateConverter
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.BuiltIn.ISO8601DateConverter
- All Implemented Interfaces:
CommandLine.ITypeConverter<Date>
- Enclosing class:
CommandLine.BuiltIn
static class CommandLine.BuiltIn.ISO8601DateConverter
extends Object
implements CommandLine.ITypeConverter<Date>
Converts text in
yyyy-mm-dd
format to a java.util.Date
. ParameterException on failure.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ISO8601DateConverter
ISO8601DateConverter()
-
-
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<Date>
- Parameters:
value
- the command line argument String value- Returns:
- the resulting domain object
-