commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
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.


>From: grumpoxl <>
>Reply-To: "Jakarta Commons Developers List" 
>To: Jakarta Commons Developers List <>
>Subject: [collections] Desirability of typed and other validated 
>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
>- 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?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

The new MSN 8: advanced junk mail protection and 2 months FREE*

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message