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