All Implemented Interfaces:
Serializable, IClusterable

public final class BooleanGroup extends Group
A Group that captures case-sensitive boolean values "true" or "false".
Author:
Jonathan Locke
See Also:
  • Constructor Details

    • BooleanGroup

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

    • getBoolean

      public boolean getBoolean(Matcher matcher)
      Parameters:
      matcher - The matcher
      Returns:
      The value
      See Also:
    • 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