You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <gg...@seagullsw.com> on 2003/10/27 20:18:09 UTC
[collections] New class EnumerationUtils?
Hello,
In 2.1, I have code like:
java.util.ResourceBundle resourceBundle = ...
List keysList = IteratorUtils.toList(new
EnumerationIterator(resourceBundle.getKeys()));
Do we want an EnumerationUtils class, which, for now (a la XP) would have a
toList() method and grow from there?
Thanks,
Gary
Re: [collections] New class EnumerationUtils?
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Yes, we are pretty much anti Enumeration. There are some methods here and
there though.
Stephen
----- Original Message -----
From: "__matthewHawthorne" <ma...@phreaker.net>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Monday, October 27, 2003 7:36 PM
Subject: Re: [collections] New class EnumerationUtils?
> The only problem is that Enumerations aren't really a part of the
> collections framework. Of course, this is just a technicality... but it
> may be the reason that a EnumerationUtils class hasn't been created.
>
> Cany anyone else confirm this?
>
>
>
>
> Gary Gregory wrote:
> > Hello,
> >
> > In 2.1, I have code like:
> >
> > java.util.ResourceBundle resourceBundle = ...
> > List keysList = IteratorUtils.toList(new
> > EnumerationIterator(resourceBundle.getKeys()));
> >
> > Do we want an EnumerationUtils class, which, for now (a la XP) would
have a
> > toList() method and grow from there?
> >
> > Thanks,
> > Gary
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [collections] New class EnumerationUtils?
Posted by __matthewHawthorne <ma...@phreaker.net>.
The only problem is that Enumerations aren't really a part of the
collections framework. Of course, this is just a technicality... but it
may be the reason that a EnumerationUtils class hasn't been created.
Cany anyone else confirm this?
Gary Gregory wrote:
> Hello,
>
> In 2.1, I have code like:
>
> java.util.ResourceBundle resourceBundle = ...
> List keysList = IteratorUtils.toList(new
> EnumerationIterator(resourceBundle.getKeys()));
>
> Do we want an EnumerationUtils class, which, for now (a la XP) would have a
> toList() method and grow from there?
>
> Thanks,
> Gary
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org