private static class AntPathMatcher.AntPatternComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
path |
Modifier | Constructor and Description |
---|---|
private |
AntPathMatcher.AntPatternComparator(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String pattern1,
java.lang.String pattern2) |
private int |
getPatternLength(java.lang.String pattern)
Returns the length of the given pattern, where template variables are considered to be 1 long.
|
private int |
getWildCardCount(java.lang.String pattern) |
private AntPathMatcher.AntPatternComparator(java.lang.String path)
public int compare(java.lang.String pattern1, java.lang.String pattern2)
compare
in interface java.util.Comparator<java.lang.String>
private int getWildCardCount(java.lang.String pattern)
private int getPatternLength(java.lang.String pattern)