Package org.apache.jackrabbit.vault.util
Class PathComparator
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.PathComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>
public class PathComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>
PathComparator
...
-
-
Constructor Summary
Constructors Constructor Description PathComparator()
PathComparator(boolean reverse)
PathComparator(char separator)
PathComparator(char separator, boolean reverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String o1, java.lang.String o2)
Compared to theString.compareTo(String)
it handles the '/' differently giving it the highest priority so that:
-
-
-
Method Detail
-
compare
public int compare(java.lang.String o1, java.lang.String o2)
Compared to theString.compareTo(String)
it handles the '/' differently giving it the highest priority so that:"/a" < "/b" "/a1foo" < "/a/foo"
- Specified by:
compare
in interfacejava.util.Comparator<java.lang.String>
-
-