[
https://issues.apache.org/jira/browse/COLLECTIONS-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552387
]
James Carman commented on COLLECTIONS-194:
------------------------------------------
I would probably pass in TransformerUtils.nopTransformer() rather than null
when you don't want to transform the map values. That would be more elegant.
Of course, a method call that merely returns the parameter would probably take
longer in practice than the null checks.
> Add populateMap() methods to MapUtils
> -------------------------------------
>
> Key: COLLECTIONS-194
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-194
> Project: Commons Collections
> Issue Type: Improvement
> Components: Map
> Environment: Operating System: All
> Platform: All
> Reporter: James Carman
> Priority: Minor
> Fix For: 3.3
>
> Attachments: COLLECTIONS-192.patch
>
>
> Add the following methods to MapUtils...
> public static void populateMap( Map map, Collection objects, Transformer
> keyTransformer );
> public static void populateMap( Map map, Collection objects, Transformer
> keyTransformer, Transformer valueTransformer );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.