Package org.nuxeo.ecm.core.trash
Class AbstractTrashService.PathComparator
- java.lang.Object
-
- org.nuxeo.ecm.core.trash.AbstractTrashService.PathComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<DocumentModel>
- Enclosing class:
- AbstractTrashService
protected static class AbstractTrashService.PathComparator extends Object implements Comparator<DocumentModel>, Serializable
Path-based comparator used to put folders before their children.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AbstractTrashService.PathComparator
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
PathComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DocumentModel doc1, DocumentModel doc2)
-
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 AbstractTrashService.PathComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(DocumentModel doc1, DocumentModel doc2)
- Specified by:
compare
in interfaceComparator<DocumentModel>
-
-