public class NodeComparator extends Object implements Comparator<Node>
Clients may subclass this class.
Node.getTitle()
Constructor and Description |
---|
NodeComparator()
Instantiates a new node comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Node o1,
Node o2)
Compares the two nodes.
|
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
public int compare(Node o1, Node o2)
compare
in interface Comparator<Node>
o1
- the first node to be compared.o2
- the second node to be compared.