commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: [collections] Desirability of typed and other validated Collections
Date Thu, 06 Mar 2003 19:11:33 GMT
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 <mhawthorne@stargate.net>
>Reply-To: "Jakarta Commons Developers List" 
><commons-dev@jakarta.apache.org>
>To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
>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


Mime
View raw message