Record Class RegexPattern.Backreference.Numbered
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Backreference.Numbered
- All Implemented Interfaces:
RegexPattern,RegexPattern.Backreference
- Enclosing interface:
RegexPattern.Backreference
public static record RegexPattern.Backreference.Numbered(int groupNumber)
extends Record
implements RegexPattern.Backreference
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern
RegexPattern.Alternation, RegexPattern.Anchor, RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.Backreference, RegexPattern.CharacterProperty, RegexPattern.CharacterSet, RegexPattern.CharRange, RegexPattern.CharSetElement, RegexPattern.Group, RegexPattern.Limited, RegexPattern.Literal, RegexPattern.LiteralChar, RegexPattern.Lookaround, RegexPattern.Metadata, RegexPattern.ModifierFlag, RegexPattern.PosixCharClass, RegexPattern.PredefinedCharClass, RegexPattern.Quantified, RegexPattern.Quantifier, RegexPattern.Sequence, RegexPattern.UnicodePropertyNested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern.Backreference
RegexPattern.Backreference.Named, RegexPattern.Backreference.Numbered -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.labs.regex.RegexPattern
followedBy, notFollowedBy, notPrecededBy, precededByMethods inherited from interface com.google.common.labs.regex.RegexPattern.Backreference
metadata
-
Constructor Details
-
Numbered
public Numbered(int groupNumber) Creates an instance of aNumberedrecord class.- Parameters:
groupNumber- the value for thegroupNumberrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
groupNumber
public int groupNumber()Returns the value of thegroupNumberrecord component.- Returns:
- the value of the
groupNumberrecord component
-