commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COLLECTIONS-235) Missing static int ListUtils.indexOf(List,Predicate) method
Date Thu, 28 Feb 2013 19:37:15 GMT

     [ https://issues.apache.org/jira/browse/COLLECTIONS-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Neidhart resolved COLLECTIONS-235.
-----------------------------------------

    Resolution: Fixed
    
> 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: 4.0
>
>         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, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message