protected static class AntPathMatcher.AntPatternComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>
Comparator
implementation returned by
AntPathMatcher.getPatternComparator(String)
.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) |
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 boolean |
isNullOrCaptureAllPattern(java.lang.String pattern) |
public int compare(java.lang.String pattern1, java.lang.String pattern2)
compare
in interface java.util.Comparator<java.lang.String>
private boolean isNullOrCaptureAllPattern(java.lang.String pattern)
private int getWildCardCount(java.lang.String pattern)
private int getPatternLength(java.lang.String pattern)