net.datastructures
Class SortedListPriorityQueue.DefaultComparator
java.lang.Object
net.datastructures.SortedListPriorityQueue.DefaultComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- SortedListPriorityQueue
- protected static class SortedListPriorityQueue.DefaultComparator
- extends Object
- implements Comparator
Inner class for a default comparator using the natural ordering
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedListPriorityQueue.DefaultComparator
public SortedListPriorityQueue.DefaultComparator()
compare
public int compare(Object a,
Object b)
throws ClassCastException
- Specified by:
compare
in interface Comparator
- Throws:
ClassCastException