Interface RegexPattern.Quantifier
- All Superinterfaces:
Function<RegexPattern, RegexPattern>
,UnaryOperator<RegexPattern>
- All Known Implementing Classes:
RegexPattern.AtLeast
,RegexPattern.AtMost
,RegexPattern.Limited
- Enclosing interface:
RegexPattern
public static sealed interface RegexPattern.Quantifier
extends UnaryOperator<RegexPattern>
permits RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.Limited
Base interface for all quantifier types.
-
Method Summary
Modifier and TypeMethodDescriptiondefault RegexPattern.Quantified
apply
(RegexPattern pattern) static RegexPattern.AtLeast
atLeast
(int n) static RegexPattern.AtMost
atMost
(int n) boolean
boolean
static RegexPattern.AtLeast
repeated()
static RegexPattern.Quantifier
repeated
(int times) static RegexPattern.Quantifier
repeated
(int min, int max)
-
Method Details
-
isReluctant
boolean isReluctant() -
isPossessive
boolean isPossessive() -
reluctant
RegexPattern.Quantifier reluctant() -
possessive
RegexPattern.Quantifier possessive() -
apply
- Specified by:
apply
in interfaceFunction<RegexPattern, RegexPattern>
-
atLeast
-
atMost
-
repeated
-
repeated
-
repeated
-