Class Patterns.PatternMatcher

java.lang.Object
io.sundr.utils.Patterns.PatternMatcher
Enclosing class:
Patterns

public static class Patterns.PatternMatcher extends Object
Fluent API for pattern matching with explicit type control.
  • Method Details

    • matches

      public boolean matches(String target, String pattern)
      Checks if the target string matches the given pattern using the configured pattern type.
      Parameters:
      target - the string to match against
      pattern - the pattern
      Returns:
      true if the target matches the pattern
    • isIncluded

      public boolean isIncluded(String target, String... patterns)
      Checks if the target is included by any of the given patterns.
      Parameters:
      target - the string to test
      patterns - the patterns to test against
      Returns:
      true if target matches any pattern, false otherwise
    • isExcluded

      public boolean isExcluded(String target, String... patterns)
      Checks if the target is excluded by any of the given patterns.
      Parameters:
      target - the string to test
      patterns - the patterns to test against
      Returns:
      true if target matches any pattern, false otherwise