commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: [Collections] Transforming Maps and Lists
Date Mon, 15 Dec 2008 21:33:20 GMT
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 <sgfan@gmx.net> wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message