commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael <sg...@gmx.net>
Subject Re: [Collections] Transforming Maps and Lists
Date Mon, 15 Dec 2008 21:56:09 GMT
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


Mime
View raw message