Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 80425 invoked from network); 28 Oct 2006 06:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2006 06:07:02 -0000 Received: (qmail 81051 invoked by uid 500); 28 Oct 2006 06:07:12 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 80795 invoked by uid 500); 28 Oct 2006 06:07:11 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 80784 invoked by uid 99); 28 Oct 2006 06:07:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 23:07:11 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of flamefew@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 23:07:00 -0700 Received: by nf-out-0910.google.com with SMTP id n15so1577486nfc for ; Fri, 27 Oct 2006 23:06:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rnxCfABEuOpzH+e6r0IGuVRB+DCjgqv+F+Kf3SxTPcI/1M+m5odJ5U+J9gshRfHOfxqJ/AiowqUIpyKw7tuZo+kdiNgdyuGzdUYtgg3SClyOtDxa6gPGHeXfZXywLa4Z+yI2ezuFjzBXDFQinNNONjA1CjACUiGIKr3W1QCYxTI= Received: by 10.82.98.13 with SMTP id v13mr90022bub; Fri, 27 Oct 2006 23:06:38 -0700 (PDT) Received: by 10.82.102.17 with HTTP; Fri, 27 Oct 2006 23:06:38 -0700 (PDT) Message-ID: <31cc37360610272306xf0a4027o431ac826dae8c6eb@mail.gmail.com> Date: Fri, 27 Oct 2006 23:06:38 -0700 From: "Henri Yandell" To: "Jakarta Commons Developers List" Subject: Re: [collections] Generics & the collection subpackage In-Reply-To: <4542AE53.3030702@btopenworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4542AE53.3030702@btopenworld.com> X-Virus-Checked: Checked by ClamAV on apache.org On 10/27/06, Stephen Colebourne wrote: > First analysis of the collection subpackage of [collections] for the > generics branch. > > - BoundedCollection should be deleted/renamed to Bounded > new Bounded interface would not implement Collection, allowing it to be > implemented by Maps as well as Collections > > - UnmodifiableBoundedCollection should be deleted > Just use the isFull/maxSize methods on CollectionUtils or similar > > - AbstractSerializedCollectionDecorator should be deleted > Serialization can now be rolled up into the base decorator > This simplifies a lot of code > It wasn't done originally due to back-compat > > - TransformedCollection will need some thinking about to generify, as a > transformer can change object types > > - Consider adding a Decorator interface > This would provide a single method decorated() that obtains the > collection that has been decorated. > Whilst useful, this is also potentially dangerous exposure of state. > > - Consider adding a Container interface > This would be a base super interface for Collection and Map (but > obviously we can't hack the JDK. > > - Consider whether UnmodifiableCollection should be deleted as it > duplicates the JDK. Should we delete the EMPTY_MAP, EMPTY_COLLECTION, EMPTY_SET bits? They're in the JDK now. Maybe we should create a JIRA issue for all the things that should be deleted as being in the JDK. Store them up there and take care of them if we decide that we're going to aggressively break backwards compat. Hen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org