Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 93108 invoked from network); 1 Jan 2004 22:16:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Jan 2004 22:16:27 -0000 Received: (qmail 12912 invoked by uid 500); 1 Jan 2004 22:16:13 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 12569 invoked by uid 500); 1 Jan 2004 22:16:11 -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 12555 invoked from network); 1 Jan 2004 22:16:11 -0000 Received: from unknown (HELO zinc.btinternet.com) (194.73.73.148) by daedalus.apache.org with SMTP; 1 Jan 2004 22:16:11 -0000 Received: from [81.128.36.191] (helo=oemcomputer) by zinc.btinternet.com with smtp (Exim 3.22 #25) id 1AcB72-00054a-00 for commons-dev@jakarta.apache.org; Thu, 01 Jan 2004 22:16:16 +0000 Message-ID: <00b101c3d0b5$84ed2d60$bf248051@oemcomputer> From: "Stephen Colebourne" To: "Jakarta Commons Developers List" References: <002201c3ce56$83b6a400$515f8051@oemcomputer> <008501c3d09b$4bf8a300$bf248051@oemcomputer> <3FF4805B.8000500@steitz.com> Subject: Re: [collections] BinaryHeap and PriorityQueue Date: Thu, 1 Jan 2004 22:20:52 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 > > We could go further and actually deprecated PQ. But I'm a little wary of > > that. > > We should decide whether or not Queue implementations belong in > [collections]. I am +0 on this (the "+" is because BinaryHeap/Buffer > exists). If no, we should deprecate. See below. > > > > (And both BinaryHeap and BinaryBuffer still need their remove bug fixing :-) > > As noted in bug report, I have a fix ready to commit. What I don't like > about the setup above is that this and all other fixes / enhancements need > to be applied to both classes. I am happy for Buffer to exist in [collections] (although I wish the methods were peek and pop) Given a choice I would deprecate PQ altogether. Your change will need to be applied to both BinaryBuffer and BinaryHeap, unless we make BinaryHeap wrap a BinaryBuffer (maintaining the old interface). I am +1 on renaming to PriorityBuffer. Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org