public class PQTreeSeqComparator extends java.lang.Object implements java.util.Comparator<PQTreeNode>
Constructor and Description |
---|
PQTreeSeqComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(PQTreeNode node1,
PQTreeNode node2)
This method returns the result of comparison the given PQ tree nodes.
|
public int compare(PQTreeNode node1, PQTreeNode node2)
compare
in interface java.util.Comparator<PQTreeNode>
node1
- the first PQTreeNode to be compared.node2
- the second PQTreeNode to be compared.