org.springframework.util
Class AntPathMatcher.AntPatternComparator

java.lang.Object
  extended by org.springframework.util.AntPathMatcher.AntPatternComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.String>
Enclosing class:
AntPathMatcher

private static class AntPathMatcher.AntPatternComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>


Field Summary
private  java.lang.String path
           
 
Constructor Summary
private AntPathMatcher.AntPatternComparator(java.lang.String path)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

path

private final java.lang.String path
Constructor Detail

AntPathMatcher.AntPatternComparator

private AntPathMatcher.AntPatternComparator(java.lang.String path)
Method Detail

compare

public int compare(java.lang.String pattern1,
                   java.lang.String pattern2)
Specified by:
compare in interface java.util.Comparator<java.lang.String>

getWildCardCount

private int getWildCardCount(java.lang.String pattern)

getPatternLength

private int getPatternLength(java.lang.String pattern)
Returns the length of the given pattern, where template variables are considered to be 1 long.