接口 PatternMatcher

所有已知实现类:
AntPathMatcher

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.

从以下版本开始:
0.9 RC2
另请参阅:
  • AntPathMatcher
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    matches(String pattern, String source)
    Returns true if the given source matches the specified pattern, false otherwise.
  • 方法详细资料

    • matches

      boolean matches(String pattern, String source)
      Returns true if the given source matches the specified pattern, false otherwise.
      参数:
      pattern - the pattern to match against
      source - the source to match
      返回:
      true if the given source matches the specified pattern, false otherwise.