commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COLLECTIONS-235) Missing static int ListUtils.indexOf(List,Predicate) method
Date Sun, 16 Mar 2008 01:52:24 GMT

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


Mime
View raw message