Re: [Collections] Transforming Maps and Lists

2008-12-16 Thread James Carman
I would always check CollectionUtils first. On Mon, Dec 15, 2008 at 4:56 PM, Michael wrote: > Michael wrote: >> >> James Carman wrote: >>> >>> Have you tried this? >>> >>> >>> http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util

Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
Michael wrote: James Carman wrote: Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) No, I tried http://commons.apache.org/collections/api

Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
James Carman wrote: Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) No, I tried http://commons.apache.org/collections/api-release/org/apach

Re: [Collections] Transforming Maps and Lists

2008-12-15 Thread James Carman
Have you tried this? http://commons.apache.org/collections/api-release/org/apache/commons/collections/CollectionUtils.html#transform(java.util.Collection,%20org.apache.commons.collections.Transformer) On Mon, Dec 15, 2008 at 3:47 PM, Michael wrote: > Hi folks, > > I'd like to transform both. > E

[Collections] Transforming Maps and Lists

2008-12-15 Thread Michael
Hi folks, I'd like to transform both. E.g. adding strings to a list and let the transformer lowercase them. Unfortunately the ListUtils#tranformedList(List, Transformer) transformer only when I add elements. Is there a way to achieve one-time tranformation? Thanks, Mike ---