datastructures

net.datastructures
Class SortedListPriorityQueue.DefaultComparator

java.lang.Object
  extended bynet.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


Constructor Summary
SortedListPriorityQueue.DefaultComparator()
           
 
Method Summary
 int compare(Object a, Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SortedListPriorityQueue.DefaultComparator

public SortedListPriorityQueue.DefaultComparator()
Method Detail

compare

public int compare(Object a,
                   Object b)
            throws ClassCastException
Specified by:
compare in interface Comparator
Throws:
ClassCastException

datastructures