Record Class RegexPattern.Lookaround.Lookahead
java.lang.Object
java.lang.Record
com.google.common.labs.regex.RegexPattern.Lookaround.Lookahead
- All Implemented Interfaces:
RegexPattern,RegexPattern.Lookaround
- Enclosing interface:
RegexPattern.Lookaround
public static record RegexPattern.Lookaround.Lookahead(RegexPattern target)
extends Record
implements RegexPattern.Lookaround
Positive 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.UnicodePropertyNested 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
ConstructorsConstructorDescriptionLookahead(RegexPattern target) Creates an instance of aLookaheadrecord 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, precededBy
-
Constructor Details
-
Lookahead
Creates an instance of aLookaheadrecord class.- Parameters:
target- the value for thetargetrecord 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 thetargetrecord component.- Specified by:
targetin interfaceRegexPattern.Lookaround- Returns:
- the value of the
targetrecord component
-