You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/11/27 22:48:12 UTC

[jira] [Closed] (COLLECTIONS-560) CollectionUtils: conditional collect

     [ https://issues.apache.org/jira/browse/COLLECTIONS-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart closed COLLECTIONS-560.
---------------------------------------

> CollectionUtils: conditional collect
> ------------------------------------
>
>                 Key: COLLECTIONS-560
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-560
>             Project: Commons Collections
>          Issue Type: Improvement
>            Reporter: Francesco Chicchiriccò
>         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)