protected static class AntPathMatcher.AntPatternComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>
Comparator
implementation returned by
AntPathMatcher.getPatternComparator(String)
.
In order, the most "generic" pattern is determined by the following:
Constructor and Description |
---|
AntPatternComparator(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String pattern1,
java.lang.String pattern2)
Compare two patterns to determine which should match first, i.e.
|
public int compare(java.lang.String pattern1, java.lang.String pattern2)
compare
in interface java.util.Comparator<java.lang.String>