You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/01/01 19:58:55 UTC

cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections PriorityQueue.java

scolebourne    2004/01/01 10:58:55

  Modified:    collections/src/java/org/apache/commons/collections
                        PriorityQueue.java
  Log:
  PriorityQueue is replaced by Buffer
  
  Revision  Changes    Path
  1.9       +7 -8      jakarta-commons/collections/src/java/org/apache/commons/collections/PriorityQueue.java
  
  Index: PriorityQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/PriorityQueue.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PriorityQueue.java	13 Dec 2003 23:51:28 -0000	1.8
  +++ PriorityQueue.java	1 Jan 2004 18:58:55 -0000	1.9
  @@ -57,17 +57,16 @@
    */
   package org.apache.commons.collections;
   
  -import java.util.NoSuchElementException;
  -
   /**
    * Defines a collection for priority queues, which can insert, peek and pop.
    * <p>
  - * This interface does not dictate whether it is min or max heap.
  + * This interface is now replaced by the <code>Buffer</code> interface.
  + * It remains for backwards compatability.
    *
    * @since Commons Collections 1.0
    * @version $Revision$ $Date$
    * 
  - * @author  <a href="mailto:donaldp@apache.org">Peter Donald</a>
  + * @author Peter Donald
    */
   public interface PriorityQueue {
       
  @@ -100,7 +99,7 @@
        * @return the element at top of heap
        * @throws NoSuchElementException if <code>isEmpty() == true</code>
        */
  -    Object peek() throws NoSuchElementException;
  +    Object peek();
   
       /**
        * Return element on top of heap and remove it.
  @@ -108,6 +107,6 @@
        * @return the element at top of heap
        * @throws NoSuchElementException if <code>isEmpty() == true</code>
        */
  -    Object pop() throws NoSuchElementException;
  +    Object pop();
       
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org