Class BooleanGroup

    • Constructor Detail

      • BooleanGroup

        public BooleanGroup()
        Constructs an IntegerGroup that parses Strings that match the INTEGER pattern in base 10.
        See Also:
        MetaPattern.INTEGER
    • Method Detail

      • getBoolean

        public boolean getBoolean​(Matcher matcher,
                                  boolean defaultValue)
        Gets a boolean by parsing the String matched by this capturing group.
        Parameters:
        matcher - The matcher
        defaultValue - The default value to use if this group is omitted because it is optional
        Returns:
        The parsed int value