commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <j...@apache.org>
Subject [jira] [Updated] (COLLECTIONS-560) CollectionUtils: conditional collect
Date Fri, 10 Apr 2015 14:59:12 GMT

     [ 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)

Mime
View raw message