Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 51195 invoked from network); 1 Jan 2004 19:00:30 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Jan 2004 19:00:29 -0000 Received: (qmail 14244 invoked by uid 500); 1 Jan 2004 19:00:15 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 14000 invoked by uid 500); 1 Jan 2004 19:00:12 -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 13986 invoked by uid 500); 1 Jan 2004 19:00:12 -0000 Received: (qmail 13981 invoked from network); 1 Jan 2004 19:00:12 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 1 Jan 2004 19:00:12 -0000 Received: (qmail 51023 invoked by uid 1529); 1 Jan 2004 19:00:20 -0000 Date: 1 Jan 2004 19:00:20 -0000 Message-ID: <20040101190020.51022.qmail@minotaur.apache.org> From: scolebourne@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections BinaryHeap.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N scolebourne 2004/01/01 11:00:20 Modified: collections/src/java/org/apache/commons/collections BinaryHeap.java Log: Undeprecate, as is only implementation of PriorityQueue Revision Changes Path 1.16 +19 -15 jakarta-commons/collections/src/java/org/apache/commons/collections/BinaryHeap.java Index: BinaryHeap.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BinaryHeap.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- BinaryHeap.java 29 Nov 2003 18:04:57 -0000 1.15 +++ BinaryHeap.java 1 Jan 2004 19:00:20 -0000 1.16 @@ -63,36 +63,40 @@ import java.util.NoSuchElementException; /** - * Binary heap implementation of {@link PriorityQueue} and {@link Buffer}. + * Binary heap implementation of PriorityQueue. + *

+ * The PriorityQueue interface has now been replaced for most uses + * by the Buffer interface. This class and the interface are + * retained for backwards compatability. The intended replacement is + * {@link org.apache.commons.collections.buffer.BinaryBuffer BinaryBuffer}. *

* The removal order of a binary heap is based on either the natural sort * order of its elements or a specified {@link Comparator}. The - * {@link #remove()} method always returns the first element as determined + * {@link #pop()} method always returns the first element as determined * by the sort order. (The isMinHeap flag in the constructors - * can be used to reverse the sort order, in which case {@link #remove()} + * can be used to reverse the sort order, in which case {@link #pop()} * will always remove the last element.) The removal order is * not the same as the order of iteration; elements are * returned by the iterator in no particular order. *

- * The {@link #add(Object)} and {@link #remove()} operations perform - * in logarithmic time. The {@link #get()} operation performs in constant + * The {@link #insert(Object)} and {@link #pop()} operations perform + * in logarithmic time. The {@link #peek()} operation performs in constant * time. All other operations perform in linear time or worse. *

* Note that this implementation is not synchronized. Use - * {@link BufferUtils#synchronizedBuffer(Buffer)} to provide - * synchronized access to a BinaryHeap: + * {@link PriorityQueueUtils#synchronizedPriorityQueue(PriorityQueue)} + * to provide synchronized access to a BinaryHeap: * *

  - * Buffer heap = BufferUtils.synchronizedBuffer(new BinaryHeap());
  + * PriorityQueue heap = PriorityQueueUtils.synchronizedPriorityQueue(new BinaryHeap());
    * 
* - * @deprecated Moved to buffer subpackage. Due to be removed in v4.0. * @since Commons Collections 1.0 * @version $Revision$ $Date$ * - * @author Peter Donald - * @author Ram Chidambaram - * @author Michael A. Smith + * @author Peter Donald + * @author Ram Chidambaram + * @author Michael A. Smith * @author Paul Jack * @author Stephen Colebourne */ @@ -227,7 +231,7 @@ m_comparator = comparator; } - + //----------------------------------------------------------------------- /** * Clears all elements from queue. */ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org