[
https://issues.apache.org/jira/browse/COLLECTIONS-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Neidhart resolved COLLECTIONS-488.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0
Applied patch in r1538935 with a few modifications:
* renamed to matchesAll
* added more test cases
* fixed return value in case predicate is null
* fixed documentation in case collection is null or empty.
Thanks for the patch!
> Satisfies utility method
> ------------------------
>
> Key: COLLECTIONS-488
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-488
> Project: Commons Collections
> Issue Type: Improvement
> Components: Collection
> Affects Versions: 3.2.1, 4.0-alpha1
> Reporter: Josh Cain
> Priority: Trivial
> Labels: features, newbie, util
> Fix For: 4.0
>
> Attachments: collectionUtilsSatisfies.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I recently needed to use something like the CollectionUtils.exists method,
> but I wanted to know if a given predicate was true for ALL members of a
> collection, rather than just one. I cooked up a quick method called
> satisfies (help would be appreciated on the name - it's the best that I could
> come up with) that determines whether a given predicate is true for all
> members of a collection.
> Been using this library a good deal recently - hoping to get involved in its
> development!
--
This message was sent by Atlassian JIRA
(v6.1#6144)