Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 13564 invoked from network); 6 Mar 2003 19:11:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Mar 2003 19:11:50 -0000 Received: (qmail 879 invoked by uid 97); 6 Mar 2003 19:13:32 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 872 invoked from network); 6 Mar 2003 19:13:31 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 6 Mar 2003 19:13:31 -0000 Received: (qmail 12002 invoked by uid 500); 6 Mar 2003 19:11:30 -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 11983 invoked from network); 6 Mar 2003 19:11:29 -0000 Received: from f149.law15.hotmail.com (HELO hotmail.com) (64.4.23.149) by daedalus.apache.org with SMTP; 6 Mar 2003 19:11:29 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 6 Mar 2003 11:11:34 -0800 Received: from 32.97.110.142 by lw15fd.law15.hotmail.msn.com with HTTP; Thu, 06 Mar 2003 19:11:33 GMT X-Originating-IP: [32.97.110.142] From: "David Graham" To: commons-dev@jakarta.apache.org Bcc: Subject: Re: [collections] Desirability of typed and other validated Collections Date: Thu, 06 Mar 2003 12:11:33 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Mar 2003 19:11:34.0413 (UTC) FILETIME=[3415FBD0:01C2E414] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It seems like a waste of time to write/maintain code that will be obsolete quite soon. I don't find casting collection objects to be terribly painful and 1.5 will provide the function you would be coding. David >From: grumpoxl >Reply-To: "Jakarta Commons Developers List" > >To: Jakarta Commons Developers List >Subject: [collections] Desirability of typed and other validated >Collections >Date: 06 Mar 2003 14:08:36 +0000 > >Is there any interest in creating typed Collections? Even though it >looks like Java is providing generics with 1.5, this could serve as a >good holdover until then, > >- a TypedCollection(Integer.class) would only allow Integers to its add >methods > >- a TypedMap(String.class, Integer.class) would only allow String keys >and Integer values > >I understand that this type of thing could already by done using >Predicates and CollectionUtils, but typed Collections, as well as other >frequently used types of "validated" Collections, could be useful, such >as a Collection that doesn't allow null values. > >The code in CVS seems to be more up to date than the status doc >describing the action items. Is downloading the code and taking a look >around the best way to see who is working on what? > >Thanks. > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-dev-help@jakarta.apache.org _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org