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:
Modifier and Type | Class and Description |
---|---|
private static class |
AntPathMatcher.AntPatternComparator.PatternInfo
Value class that holds information about the pattern, e.g.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
path |
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>