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 <[EMAIL PROTECTED]>
Reply-To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to