protected static class AntPathMatcher.AntPatternComparator extends Object implements Comparator<String>
Comparator implementation returned by
AntPathMatcher.getPatternComparator(String).
In order, the most "generic" pattern is determined by the following:
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
AntPathMatcher.AntPatternComparator.PatternInfo
Value class that holds information about the pattern, e.g. number of
occurrences of "*", "**", and "{" pattern elements.
|
| 构造器和说明 |
|---|
AntPatternComparator(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compare(String pattern1,
String pattern2)
Compare two patterns to determine which should match first, i.e. which
is the most specific regarding the current path.
|
private final String path
public AntPatternComparator(String path)
public int compare(String pattern1, String pattern2)
compare 在接口中 Comparator<String>Copyright © 2023. All rights reserved.