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] [Created] (COLLECTIONS-560) CollectionUtils: conditional collect
Date Fri, 10 Apr 2015 14:58:12 GMT
Francesco Chicchiriccò created COLLECTIONS-560:
--------------------------------------------------

             Summary: 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


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