Record Class RegexPattern.Quantified
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Quantified
- All Implemented Interfaces:
RegexPattern
- Enclosing interface:
RegexPattern
public static record RegexPattern.Quantified(RegexPattern element, RegexPattern.Quantifier quantifier)
extends Record
implements RegexPattern
Represents a regex pattern that is modified by a quantifier.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern
RegexPattern.Alternation, RegexPattern.Anchor, RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.CharacterProperty, RegexPattern.CharacterSet, RegexPattern.CharRange, RegexPattern.CharSetElement, RegexPattern.Group, RegexPattern.Limited, RegexPattern.Literal, RegexPattern.LiteralChar, RegexPattern.Lookaround, RegexPattern.PosixCharClass, RegexPattern.PredefinedCharClass, RegexPattern.Quantified, RegexPattern.Quantifier, RegexPattern.Sequence, RegexPattern.UnicodeProperty -
Constructor Summary
ConstructorsConstructorDescriptionQuantified(RegexPattern element, RegexPattern.Quantifier quantifier) Creates an instance of aQuantifiedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequantifierrecord component.toString()Returns a string representation of this record class.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, precededBy
-
Constructor Details
-
Quantified
Creates an instance of aQuantifiedrecord class.- Parameters:
element- the value for theelementrecord componentquantifier- the value for thequantifierrecord 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 withObjects::equals(Object,Object). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
quantifier
Returns the value of thequantifierrecord component.- Returns:
- the value of the
quantifierrecord component
-