Package org.nuxeo.ecm.core.model
Class PathComparator
- java.lang.Object
-
- org.nuxeo.ecm.core.model.PathComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Document>
public class PathComparator extends Object implements Comparator<Document>, Serializable
Compares documents by paths. Placeless documents (null path) are sorted first, and compared by id between themselves.- Author:
- Georges Racinet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PathComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Document o1, Document 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
-
-
-
-
Method Detail
-
compare
public int compare(Document o1, Document o2)
- Specified by:
compare
in interfaceComparator<Document>
-
-