Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 55091 invoked from network); 9 Dec 2003 03:41:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Dec 2003 03:41:14 -0000 Received: (qmail 29148 invoked by uid 500); 9 Dec 2003 03:40:52 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 29088 invoked by uid 500); 9 Dec 2003 03:40:52 -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 29075 invoked from network); 9 Dec 2003 03:40:52 -0000 Received: from unknown (HELO hume.tsdinc.steitz.com) (209.249.229.10) by daedalus.apache.org with SMTP; 9 Dec 2003 03:40:52 -0000 Content-Class: urn:content-classes:message Received: from Lavoie.tsdinc.steitz.com ([209.249.229.4]) by hume.tsdinc.steitz.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 8 Dec 2003 22:40:56 -0500 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Received: from steitz.com ([130.13.97.80]) by Lavoie.tsdinc.steitz.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 8 Dec 2003 22:40:56 -0500 Message-ID: <3FD543CF.2090409@steitz.com> Date: Mon, 08 Dec 2003 20:38:55 -0700 From: "Phil Steitz" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jakarta Commons Developers List" Subject: Re: [collections] [contribution] CompositeSet and CompositeMap References: <1C2E84F8-2824-11D8-AA34-000A95782782@apache.org> <004901c3bc68$92e1d440$b32a8051@oemcomputer> <9F284776-286F-11D8-ADA2-000A95782782@forthillcompany.com> <004e01c3bd1f$688b47a0$f2698051@oemcomputer> <3D18A972-2913-11D8-92B3-000A95782782@forthillcompany.com> Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Dec 2003 03:40:56.0536 (UTC) FILETIME=[40F49D80:01C3BE06] 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 Brian McCallister wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Dec 7, 2003, at 7:08 PM, Stephen Colebourne wrote: > >> I think that they probably are useful additions, however the review and >> commit may take some time :-) > > > No worries =) I don't have an immediate or near future need for them to > be in commons-collections -- they can live happily on their own working > against the present release. I just thought that they would fit well so > wanted to contribute them. > > I'll try to keep an eye on this list for discussion in the future on > them when someone has a chance to review, but it is high enough volume > that things slip through sometimes. Brian, I had a look. I now see the changes necessary to the CompositeCollection class and my previous comments on the earlier submission still hold: Housekeeping: * Please try to follow the [collections] style for braces. Substantive: Why does CompositeSet extend CompositeCollection? The setup looks a bit strained to me (e.g. the type checking in the addComposited method). Looking carefully at what addComposited does in CompositeSet, I am not sure that I understand what CompositeSet and CompositeMap are trying to do. I understood CompositeCollection to be a convenient way to decorate a collection of Collections to provide a unified view. Once you try to control "collisions", as in the Set and Map impls, you seem to be headed for some kind of partition concept. Is that what you had in mind? Also, since add() and resolveCollisions() are separate methods in the mutator interface, one could presumably do inconsistent things -- i.e., allow "duplicates" to be added directly via add() but disallow them in addComposited() by having resolveCollisions prevent duplicates. Can you explain a little more what the use cases for these things are? Phil > > - -Brian > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQE/08H+aOuMdvjqKWcRAjQUAJ49yLhytK5FWZae1FzSEW+LtlkwvwCfR71C > LJchgJsHh5ugSoK8V5mrbvY= > =u7Ze > -----END PGP SIGNATURE----- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org