maspack.util
Class BinaryHeap.DefaultComparator<E>

java.lang.Object
  extended by maspack.util.BinaryHeap.DefaultComparator<E>
All Implemented Interfaces:
java.util.Comparator<E>
Enclosing class:
BinaryHeap<E>

public static class BinaryHeap.DefaultComparator<E>
extends java.lang.Object
implements java.util.Comparator<E>


Constructor Summary
BinaryHeap.DefaultComparator()
           
 
Method Summary
 int compare(E o1, E o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BinaryHeap.DefaultComparator

public BinaryHeap.DefaultComparator()
Method Detail

compare

public int compare(E o1,
                   E o2)
Specified by:
compare in interface java.util.Comparator<E>