Interface PatternMatcher

  • All Known Implementing Classes:
    AntPathMatcher, RegExPatternMatcher

    public interface PatternMatcher
    Interface for components that can match source strings against a specified pattern string.

    Different implementations can support different pattern types, for example, Ant style path expressions, or regular expressions, or other types of text based patterns.

    Since:
    0.9 RC2
    See Also:
    AntPathMatcher
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean  pattern,  source)
      Returns true if the given source matches the specified pattern, false otherwise.
    • Method Detail

      • matches

        boolean matches​( pattern,
                         source)
        Returns true if the given source matches the specified pattern, false otherwise.
        Parameters:
        pattern - the pattern to match against
        source - the source to match
        Returns:
        true if the given source matches the specified pattern, false otherwise.