Package org.nuxeo.ecm.core.model
Class PathComparator
java.lang.Object
org.nuxeo.ecm.core.model.PathComparator
- All Implemented Interfaces:
 Serializable,Comparator<Document>
Compares documents by paths. Placeless documents (null path) are sorted first, and compared by id between themselves.
- Author:
 - Georges Racinet
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong 
- 
Constructor Details
- 
PathComparator
public PathComparator() 
 - 
 - 
Method Details
- 
compare
- Specified by:
 comparein interfaceComparator<Document>
 
 -