Hmm. I thought these were already in Collections :) But it seems not.
I'm in favour of it.

+1

On 6 Mar 2003, grumpoxl wrote:

> 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]
>
>


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

Reply via email to