Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 79857 invoked from network); 19 Mar 2002 13:19:17 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Mar 2002 13:19:17 -0000 Received: (qmail 11484 invoked by uid 97); 19 Mar 2002 13:19:15 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 11468 invoked by uid 97); 19 Mar 2002 13:19:15 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 11457 invoked by uid 97); 19 Mar 2002 13:19:14 -0000 Date: 19 Mar 2002 13:19:13 -0000 Message-ID: <20020319131913.27365.qmail@icarus.apache.org> From: mas@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections SynchronizedPriorityQueue.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: