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.Quantifiedapply(RegexPattern pattern) static RegexPattern.AtLeastatLeast(int n) static RegexPattern.AtMostatMost(int n) booleanbooleanstatic RegexPattern.AtLeastrepeated()static RegexPattern.Quantifierrepeated(int times) static RegexPattern.Quantifierrepeated(int min, int max)
-
Method Details
-
isReluctant
boolean isReluctant() -
isPossessive
boolean isPossessive() -
reluctant
RegexPattern.Quantifier reluctant() -
possessive
RegexPattern.Quantifier possessive() -
apply
- Specified by:
applyin interfaceFunction<RegexPattern, RegexPattern>
-
atLeast
-
atMost
-
repeated
-
repeated
-
repeated
-