Record Class RegexPattern.Lookaround.NegativeLookahead
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Lookaround.NegativeLookahead
- All Implemented Interfaces:
RegexPattern
,RegexPattern.Lookaround
- Enclosing interface:
RegexPattern.Lookaround
public static record RegexPattern.Lookaround.NegativeLookahead(RegexPattern target)
extends Record
implements RegexPattern.Lookaround
Negative lookahead:
(?!pattern)
.-
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
Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern.Lookaround
RegexPattern.Lookaround.Lookahead, RegexPattern.Lookaround.Lookbehind, RegexPattern.Lookaround.NegativeLookahead, RegexPattern.Lookaround.NegativeLookbehind
-
Constructor Summary
ConstructorsConstructorDescriptionNegativeLookahead
(RegexPattern target) Creates an instance of aNegativeLookahead
record class. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.labs.regex.RegexPattern
followedBy, notFollowedBy, notPrecededBy, precededBy
-
Constructor Details
-
NegativeLookahead
Creates an instance of aNegativeLookahead
record class.- Parameters:
target
- the value for thetarget
record 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)
. -
target
Returns the value of thetarget
record component.- Specified by:
target
in interfaceRegexPattern.Lookaround
- Returns:
- the value of the
target
record component
-