Package io.sundr.utils
Class Patterns.PatternMatcher
java.lang.Object
io.sundr.utils.Patterns.PatternMatcher
- Enclosing class:
- Patterns
Fluent API for pattern matching with explicit type control.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisExcluded(String target, String... patterns) Checks if the target is excluded by any of the given patterns.booleanisIncluded(String target, String... patterns) Checks if the target is included by any of the given patterns.booleanChecks if the target string matches the given pattern using the configured pattern type.
-
Method Details
-
matches
Checks if the target string matches the given pattern using the configured pattern type.- Parameters:
target- the string to match againstpattern- the pattern- Returns:
- true if the target matches the pattern
-
isIncluded
Checks if the target is included by any of the given patterns.- Parameters:
target- the string to testpatterns- the patterns to test against- Returns:
- true if target matches any pattern, false otherwise
-
isExcluded
Checks if the target is excluded by any of the given patterns.- Parameters:
target- the string to testpatterns- the patterns to test against- Returns:
- true if target matches any pattern, false otherwise
-