protected static class RepositoryNodeGenerator.NodeNameComparator extends Object implements Comparator<Node>
Modifier and Type | Field and Description |
---|---|
protected boolean |
_ascending
Indicates if the comparators acts in ascending order.
|
Constructor and Description |
---|
NodeNameComparator()
Constructs a node name comparator.
|
NodeNameComparator(boolean ascending)
Constructs a node name comparator, specifying ascending or descending order.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Node o1,
Node o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected boolean _ascending
public NodeNameComparator()
public NodeNameComparator(boolean ascending)
ascending
- true if we want to compare node names in ascending order, false otherwise.