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:
Constructor and Description |
---|
AntPatternComparator(String path)
构造
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public AntPatternComparator(String path)
path
- 路径public int compare(String pattern1, String pattern2)
compare
in interface Comparator<String>
pattern1
- 表达式1pattern2
- 表达式2Copyright © 2025. All rights reserved.