You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ma...@apache.org on 2002/03/19 14:19:13 UTC

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

mas         02/03/19 05:19:13

  Modified:    collections/src/java/org/apache/commons/collections
                        SynchronizedPriorityQueue.java
  Log:
  Fixed API to use new interfaces defined by PriorityQueue.  Now supports
  objects that do not implement comparable.
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java
  
  Index: SynchronizedPriorityQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SynchronizedPriorityQueue.java	10 Feb 2002 08:07:42 -0000	1.2
  +++ SynchronizedPriorityQueue.java	19 Mar 2002 13:19:13 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java,v 1.2 2002/02/10 08:07:42 jstrachan Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/02/10 08:07:42 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/SynchronizedPriorityQueue.java,v 1.3 2002/03/19 13:19:13 mas Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/03/19 13:19:13 $
    *
    * ====================================================================
    *
  @@ -102,7 +102,7 @@
        *
        * @param element the element to be inserted
        */
  -    public synchronized void insert( final Comparable element )
  +    public synchronized void insert( final Object element )
       {
           m_priorityQueue.insert( element );
       }
  @@ -113,7 +113,7 @@
        * @return the element at top of heap
        * @exception NoSuchElementException if isEmpty() == true
        */
  -    public synchronized Comparable peek() throws NoSuchElementException
  +    public synchronized Object peek() throws NoSuchElementException
       {
           return m_priorityQueue.peek();
       }
  @@ -124,7 +124,7 @@
        * @return the element at top of heap
        * @exception NoSuchElementException if isEmpty() == true
        */
  -    public synchronized Comparable pop() throws NoSuchElementException
  +    public synchronized Object pop() throws NoSuchElementException
       {
           return m_priorityQueue.pop();
       }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>