PQueue2.pizza

public class PQueue2<T implements ORDER<T>> extends PQueue1<T> {

   COMPARER<T> comparer = new DefaultComparer();

   public PQueue2() {super();};

   public PQueue2(COMPARER<T> c) {super(c);};
}

class DefaultComparer<T implements ORDER<T>> implements COMPARER<T> {

   public int compare(T o1, T o2) {
      return (o1.compare(o2));
   }
}


On to EmptyStoreException.java Part of Priority Queues mit Pizza
Andreas Podelski, Abdelwaheb Ayari, Hubert Baumeister
February 25, 1997

Imprint | Data Protection