Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 80149 invoked from network); 28 Dec 2006 20:56:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Dec 2006 20:56:45 -0000 Received: (qmail 8063 invoked by uid 500); 28 Dec 2006 20:56:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 7978 invoked by uid 500); 28 Dec 2006 20:56:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 7967 invoked by uid 99); 28 Dec 2006 20:56:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 12:56:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 12:56:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 627697142C3 for ; Thu, 28 Dec 2006 12:56:22 -0800 (PST) Message-ID: <17938908.1167339382400.JavaMail.jira@brutus> Date: Thu, 28 Dec 2006 12:56:22 -0800 (PST) From: "Dave Meikle (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (COLLECTIONS-235) Missing static int ListUtils.indexOf(List,Predicate) method In-Reply-To: <5897032.1164041402019.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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