com.alibaba.druid.util
接口 PatternMatcher
- 所有已知实现类:
- ServletPathMatcher
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.2.6
- 另请参见:
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 againstsource - the source to match
- 返回:
true if the given source matches the specified pattern,
false otherwise.
Copyright © 2013 Alibaba Group. All Rights Reserved.