commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Egge (JIRA)" <j...@apache.org>
Subject [jira] Created: (COLLECTIONS-235) Missing static int ListUtils.indexOf(List,Predicate) method
Date Mon, 20 Nov 2006 16:50:02 GMT
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


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