[
https://issues.apache.org/jira/browse/COLLECTIONS-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell closed COLLECTIONS-235.
-------------------------------------
Resolution: Fixed
svn ci -m "Nathan Egge requested a ListUtils.indexOf(List, Predicate) method
in COLLECTIONS-235. Applying Dave Meikle's patch. " src
Sending src/java/org/apache/commons/collections/ListUtils.java
Sending src/test/org/apache/commons/collections/TestListUtils.java
Transmitting file data ..
Committed revision 637505.
> Missing static int ListUtils.indexOf(List,Predicate) method
> -----------------------------------------------------------
>
> Key: COLLECTIONS-235
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-235
> Project: Commons Collections
> Issue Type: New Feature
> Affects Versions: 3.2
> Reporter: Nathan Egge
> Fix For: 3.3
>
> Attachments: COLLECTIONS-235.patch
>
>
> Similar to this method on CollectionUtils:
> public static Object find(Collection c,Predicate p)
> there should be the following method on ListUtils:
> public static int indexOf(List l,Predicate p)
> which returns the index of the first Object in the List where the Predicate
> evaluates true.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.