Package picocli
Class CommandLine.BuiltIn.BooleanConverter
java.lang.Object
picocli.CommandLine.BuiltIn.BooleanConverter
- All Implemented Interfaces:
CommandLine.ITypeConverter<Boolean>
- Enclosing class:
CommandLine.BuiltIn
static class CommandLine.BuiltIn.BooleanConverter
extends Object
implements CommandLine.ITypeConverter<Boolean>
Converts
"true"
or "false"
to a Boolean
. Other values result in a ParameterException.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BooleanConverter
BooleanConverter()
-
-
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<Boolean>
- Parameters:
value
- the command line argument String value- Returns:
- the resulting domain object
-