Class BooleanConverter
java.lang.Object
io.vertx.core.cli.converters.BooleanConverter
A converter for boolean. This converter considered as 'true' : "true", "on", "1",
"yes". All other values are considered as 'false' (as a consequence, 'null' is considered as 'false').
- Author:
- Clement Escoffier invalid input: '<'[email protected]>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromString(String value) Creates the boolean value from the given String.
-
Field Details
-
INSTANCE
The converter.
-
-
Method Details
-
fromString
Creates the boolean value from the given String. If the given String does not match one of the 'true' value,falseis returned.- Specified by:
fromStringin interfaceConverter<Boolean>- Parameters:
value- the value- Returns:
- the boolean object
-