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 Tue, 16 Dec 2008 12:30:58 GMT
I would always check CollectionUtils first.

On Mon, Dec 15, 2008 at 4:56 PM, Michael <sgfan@gmx.net> 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.Collection,%20org.apache.commons.collections.Transformer)
>>
>> No,
>>
>> I tried
>> http://commons.apache.org/collections/api-release/org/apache/commons/collections/ListUtils.html#transformedList(java.util.List,%20org.apache.commons.collections.Transformer)
>>
>> beause it seems the best thing which it isn't :-(
>
> EDIT: Your proposed method does!
>
> Unfortunately the Util classed and collection/map classes are not really
> done uniformly :-(
> I have to transform a list of maps which contain oracle.sql.TIMESTAMP but
> has to be java.sql.Timestamp since oracle's timestamp is useless in JSP and
> DisplayTag (fmt, comparable).
>
> Thanks
>
> ---------------------------------------------------------------------
> 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