Class PathComparator
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.PathComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Path>
public class PathComparator extends Object implements Comparator<Path>, Serializable
Implements a comparator, which sorts paths according to 1) their depth (highest first) and 2) the paths natural ordering.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<Path>
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Path p1, Path p2)
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final Comparator<Path> INSTANCE
-
-
Method Detail
-
compare
public int compare(Path p1, Path p2)
- Specified by:
compare
in interfaceComparator<Path>
-
-