Record Class RegexPattern.CharacterSet.AnyOf
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.CharacterSet.AnyOf
- All Implemented Interfaces:
RegexPattern,RegexPattern.CharacterSet
- Enclosing interface:
RegexPattern.CharacterSet
public static record RegexPattern.CharacterSet.AnyOf(List<RegexPattern.CharSetElement> elements)
extends Record
implements RegexPattern.CharacterSet
A positive character class, like
[a-z].-
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.UnicodePropertyNested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern.CharacterSet
RegexPattern.CharacterSet.AnyOf, RegexPattern.CharacterSet.NoneOf -
Constructor Summary
ConstructorsConstructorDescriptionAnyOf(List<RegexPattern.CharSetElement> elements) Creates an instance of aAnyOfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord 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, precededBy
-
Constructor Details
-
AnyOf
Creates an instance of aAnyOfrecord class.- Parameters:
elements- the value for theelementsrecord 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). -
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-