commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Meikle (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COLLECTIONS-235) Missing static int ListUtils.indexOf(List,Predicate) method
Date Thu, 28 Dec 2006 20:56:22 GMT
     [ http://issues.apache.org/jira/browse/COLLECTIONS-235?page=all ]

Dave Meikle updated COLLECTIONS-235:
------------------------------------

    Attachment: COLLECTIONS-235.patch

Here is a patch to add the ListUtils.indexOf method and the related unit test.

> Missing static int ListUtils.indexOf(List,Predicate) method
> -----------------------------------------------------------
>
>                 Key: COLLECTIONS-235
>                 URL: http://issues.apache.org/jira/browse/COLLECTIONS-235
>             Project: Commons Collections
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: Nathan Egge
>         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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message