Class BooleanConverter

java.lang.Object
io.vertx.core.cli.converters.BooleanConverter
All Implemented Interfaces:
Converter<Boolean>

public final class BooleanConverter extends Object implements Converter<Boolean>
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 Details

  • Method Details

    • fromString

      public Boolean fromString(String value)
      Creates the boolean value from the given String. If the given String does not match one of the 'true' value, false is returned.
      Specified by:
      fromString in interface Converter<Boolean>
      Parameters:
      value - the value
      Returns:
      the boolean object