You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Francesco Chicchiriccò (JIRA)" <ji...@apache.org> on 2015/04/10 16:59:12 UTC
[jira] [Updated] (COLLECTIONS-560) CollectionUtils: conditional
collect
[ https://issues.apache.org/jira/browse/COLLECTIONS-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Chicchiriccò updated COLLECTIONS-560:
-----------------------------------------------
Attachment: COLLECTIONS-560.diff
This patch adds a couple of new {{CollectionUtils#collect}} variants that takes a {{Predicate}} as further argument.
> CollectionUtils: conditional collect
> ------------------------------------
>
> Key: COLLECTIONS-560
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-560
> Project: Commons Collections
> Issue Type: Improvement
> Reporter: Francesco Chicchiriccò
> Fix For: 4.1
>
> Attachments: COLLECTIONS-560.diff
>
>
> The variants of {{CollectionUtils#collect}} will always add the object generated by {{transformer}} into the {{outputCollection}}.
> An improvement would be to add a couple of further variants which also accepts a {{Predicate}} argument, to be used for conditionally adding to the {{outputCollection}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)