Re: [collections] Re: Commons Collections:Suggested MapUtils enhancements

2002-10-13 Thread Stephen Colebourne
See http://jakarta.apache.org/site/source.html for submissions details. toMap(Object[]) is used to initialise a Map, such as a HashMap with data. asMap(Object[]) exposes an array as a Map, thus can't have its size changed toMap(Object[]) is the same as map.putAll(MapUtils.asMap(Object[])); t

[collections] Re: Commons Collections:Suggested MapUtils enhancements

2002-10-12 Thread Moritz Petersen
Hi Phil, Stephen, the MapUtils.asMap(Object[]) method is finished. What to do now? How should I make it available? To the next steps: Maybe I am too stupid, but I don't see the reason for a toMap(Object[]) method. Could you please explain the advantage of it (especially versus asMap(Object[])

RE: Commons Collections:Suggested MapUtils enhancements

2002-10-10 Thread Phil Surette
ou're expecting is an Object[][] created like this: {{"hello", "goodbye"}{"fast", "slow"}} that should be what the sig says - and gives a nice hint to the end user as to what to pass in. -Original Message- From: Moritz Petersen [mailto:[EMAIL