Class BooleanGroup

  • All Implemented Interfaces:
    java.io.Serializable, IClusterable

    public final class BooleanGroup
    extends Group
    A Group that captures case-sensitive boolean values "true" or "false".
    Author:
    Jonathan Locke
    See Also:
    Serialized Form
    • 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​(java.util.regex.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