public class DataStoreNodeComparator extends Object implements Comparator<DataStoreNode>
A Comparator for DataStoreNodes residing in the same parent
node.
Directory nodes (see DataStoreNode.isDirectory() have a higher
priority than file nodes (see DataStoreNode.isFile()). Nodes are
compared by their names.
| Constructor and Description |
|---|
DataStoreNodeComparator()
Creates a comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(DataStoreNode o1,
DataStoreNode o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(DataStoreNode o1, DataStoreNode o2)
compare in interface Comparator<DataStoreNode>Copyright © 2015–2019. All rights reserved.