Class FloatingPointGroup

All Implemented Interfaces:
Serializable, IClusterable

public final class FloatingPointGroup extends Group
A Group that captures floating point values (doubles and floats).
Author:
Jonathan Locke
See Also:
  • Constructor Details

  • Method Details

    • getFloat

      public float getFloat(Matcher matcher)
      Parameters:
      matcher - The matcher
      Returns:
      The value
    • getFloat

      public float getFloat(Matcher matcher, float defaultValue)
      Gets float 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 value
    • getDouble

      public double getDouble(Matcher matcher)
      Parameters:
      matcher - The matcher
      Returns:
      The value
    • getDouble

      public double getDouble(Matcher matcher, double defaultValue)
      Gets double 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 value