Record Class RegexPattern.Group.NonCapturing
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Group.NonCapturing
- All Implemented Interfaces:
RegexPattern,RegexPattern.Group
- Enclosing interface:
RegexPattern.Group
public static record RegexPattern.Group.NonCapturing(RegexPattern content, List<RegexPattern.ModifierFlag> enabledModifierFlags, List<RegexPattern.ModifierFlag> disabledModifierFlags)
extends Record
implements RegexPattern.Group
A non-capturing group, like
(?:a).-
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.Group
RegexPattern.Group.Capturing, RegexPattern.Group.Named, RegexPattern.Group.NonCapturing -
Constructor Summary
ConstructorsConstructorDescriptionNonCapturing(RegexPattern content) NonCapturing(RegexPattern content, List<RegexPattern.ModifierFlag> enabledModifierFlags, List<RegexPattern.ModifierFlag> disabledModifierFlags) Creates an instance of aNonCapturingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.Returns the value of thedisabledModifierFlagsrecord component.Returns the value of theenabledModifierFlagsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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, precededByMethods inherited from interface com.google.common.labs.regex.RegexPattern.Group
metadata
-
Constructor Details
-
NonCapturing
public NonCapturing(RegexPattern content, List<RegexPattern.ModifierFlag> enabledModifierFlags, List<RegexPattern.ModifierFlag> disabledModifierFlags) Creates an instance of aNonCapturingrecord class.- Parameters:
content- the value for thecontentrecord componentenabledModifierFlags- the value for theenabledModifierFlagsrecord componentdisabledModifierFlags- the value for thedisabledModifierFlagsrecord component
-
NonCapturing
-
-
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). -
content
Returns the value of thecontentrecord component.- Specified by:
contentin interfaceRegexPattern.Group- Returns:
- the value of the
contentrecord component
-
enabledModifierFlags
Returns the value of theenabledModifierFlagsrecord component.- Returns:
- the value of the
enabledModifierFlagsrecord component
-
disabledModifierFlags
Returns the value of thedisabledModifierFlagsrecord component.- Returns:
- the value of the
disabledModifierFlagsrecord component
-