Class NodeDocumentIdComparator
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.NodeDocumentIdComparator
-
- All Implemented Interfaces:
Comparator<String>
public class NodeDocumentIdComparator extends Object implements Comparator<String>
Implements a comparator, which sorts NodeDocumentId string according to 1) their depth (highest first) and 2) the id string itself.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<String>
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(String o1, String o2)
-
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<String> INSTANCE
-
-
Method Detail
-
compare
public int compare(String o1, String o2)
- Specified by:
compare
in interfaceComparator<String>
-
-