commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <ggreg...@seagullsw.com>
Subject RE: [collections] New class EnumerationUtils?
Date Mon, 27 Oct 2003 20:30:19 GMT
Well, you could argue that Enumeration need to /play/ with collections and
since both are in the java.util package... In any case, it's not that I
/want/ to use Enumerations, it's just that the JRE gives them to you and I
really want a collection instead. So I am looking obviously to [collections]
to help them play nice with each other. It feels like it belongs in [lang]
or [collections] but [collections] feels more at home to me.

Gary

> -----Original Message-----
> From: Stephen Colebourne [mailto:scolebourne@btopenworld.com]
> Sent: Monday, October 27, 2003 11:56
> To: Jakarta Commons Developers List
> Subject: Re: [collections] New class EnumerationUtils?
> 
> Yes, we are pretty much anti Enumeration. There are some methods here and
> there though.
> Stephen
> 
> ----- Original Message -----
> From: "__matthewHawthorne" <matth@phreaker.net>
> To: "Jakarta Commons Developers List" <commons-dev@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message