Record Class RegexPattern.CharacterSet.Intersection
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.CharacterSet.Intersection
- All Implemented Interfaces:
RegexPattern,RegexPattern.CharacterSet,RegexPattern.CharSetElement
- Enclosing interface:
RegexPattern.CharacterSet
public static record RegexPattern.CharacterSet.Intersection(List<RegexPattern.CharacterSet> operands)
extends Record
implements RegexPattern.CharacterSet
An intersection of character classes, like
[a-z&&[^bc]].-
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.ModifierDirective, 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.CharacterSet
RegexPattern.CharacterSet.AnyOf, RegexPattern.CharacterSet.Intersection, RegexPattern.CharacterSet.NoneOf -
Constructor Summary
ConstructorsConstructorDescriptionIntersection(List<RegexPattern.CharacterSet> operands) Creates an instance of aIntersectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.operands()Returns the value of theoperandsrecord 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, precededByMethods inherited from interface com.google.common.labs.regex.RegexPattern.CharacterSet
metadata
-
Constructor Details
-
Intersection
Creates an instance of aIntersectionrecord class.- Parameters:
operands- the value for theoperandsrecord component
-
-
Method Details
-
elementString
- Specified by:
elementStringin interfaceRegexPattern.CharacterSet
-
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). -
operands
Returns the value of theoperandsrecord component.- Returns:
- the value of the
operandsrecord component
-