Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 186 invoked from network); 27 Feb 2010 03:34:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Feb 2010 03:34:26 -0000 Received: (qmail 36348 invoked by uid 500); 27 Feb 2010 03:34:26 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 36213 invoked by uid 500); 27 Feb 2010 03:34:26 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 36205 invoked by uid 99); 27 Feb 2010 03:34:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Feb 2010 03:34:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Feb 2010 03:34:26 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB9E3234C48D for ; Sat, 27 Feb 2010 03:34:05 +0000 (UTC) Message-ID: <724349664.7061267241645833.JavaMail.jira@brutus.apache.org> Date: Sat, 27 Feb 2010 03:34:05 +0000 (UTC) From: "Paul Benedict (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-483) Add ComparisonUtils to Commons Lang In-Reply-To: <487745502.1235349061867.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839153#action_12839153 ] Paul Benedict commented on LANG-483: ------------------------------------ I would pull most of these utility methods into their proper places like ArrayUtils. My addition would be a new enum that represents LESS(-1), EQUAL(0), GREATER(1) so that I can perform switch statements on comparison results. > Add ComparisonUtils to Commons Lang > ----------------------------------- > > Key: LANG-483 > URL: https://issues.apache.org/jira/browse/LANG-483 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Reporter: Benjamin McCann > Fix For: 3.1 > > Attachments: ComparisonUtils.java, ComparisonUtilsTest.java > > > It'd be impossible to guess how many times code as been written to find the position of the maximum element in an array or the value of the minimum element in a list, etc. This class will handle all of that. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.