You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2003/09/17 09:56:17 UTC

Re: [collections] idea for quick map creation method(s)

[lang]  ArrayUtils.toMap()

Stephen

----- Original Message -----
From: "Janek Bogucki" <ya...@studylink.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Friday, September 12, 2003 10:55 PM
Subject: Re: idea for quick map creation method(s)


> On Fri, 2003-09-12 at 18:36, __matthewHawthorne wrote:
> > One thing that I've always wanted is the ability to create a Map in one
> > line of code.  For example, it would allow initialization of a static
> > Map without having to resort to static blocks of code.
> >
> >
> > I'm thinking of something like:
> >
> >      createMap(Object[][])
> >      createMap(Map.Entry[])
> >
>
> There was some discussion about this a while back. I'm not sure how it
> concluded but here's part of the relevant thread:
>
> http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=103426665022869&w=2
>
> -Janek
>
>
> ---------------------------------------------------------------------
> 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