Record Class RegexPattern.UnicodeProperty
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.UnicodeProperty
- All Implemented Interfaces:
RegexPattern,RegexPattern.CharacterProperty,RegexPattern.CharSetElement
- Enclosing interface:
RegexPattern
public static record RegexPattern.UnicodeProperty(String propertyName)
extends Record
implements RegexPattern.CharacterProperty
Represents a Unicode property class: e.g. \p{Nd}
-
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.CharacterProperty
RegexPattern.CharacterProperty.Negated -
Constructor Summary
ConstructorsConstructorDescriptionUnicodeProperty(String propertyName) Creates an instance of aUnicodePropertyrecord class. -
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.CharacterProperty
negated
-
Constructor Details
-
UnicodeProperty
Creates an instance of aUnicodePropertyrecord class.- Parameters:
propertyName- the value for thepropertyNamerecord 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). -
propertyName
Returns the value of thepropertyNamerecord component.- Specified by:
propertyNamein interfaceRegexPattern.CharacterProperty- Returns:
- the value of the
propertyNamerecord component
-