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