Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47C6A10C33 for ; Sun, 12 Jan 2014 10:12:43 +0000 (UTC) Received: (qmail 91984 invoked by uid 500); 12 Jan 2014 10:11:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 91776 invoked by uid 500); 12 Jan 2014 10:10:57 -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 91739 invoked by uid 99); 12 Jan 2014 10:10:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jan 2014 10:10:51 +0000 Date: Sun, 12 Jan 2014 10:10:51 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-834) Validate: add inclusiveBetween(long start, long end, long value) methods 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-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter updated LANG-834: --------------------------------- Fix Version/s: 3.3 > Validate: add inclusiveBetween(long start, long end, long value) methods > ------------------------------------------------------------------------ > > Key: LANG-834 > URL: https://issues.apache.org/jira/browse/LANG-834 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* > Affects Versions: 3.1 > Reporter: Sebb > Fix For: 3.3, Review Patch > > Attachments: LANG-834.patch > > > Validate.inclusiveBetween() is often going to be used with primitives, so it might make sense to add > inclusiveBetween(long start, long end, long value) > and > inclusiveBetween(long start, long end, long value, String message) > This would avoid the overhead of using boxing and compareTo() for the primitive number types. > Note: I tried adding > inclusiveBetween(long start, long end, long value, String message, Object ... values) > but that causes the compiler to complain about ambiguous methods. > However, that's unlikely to be needed much. -- This message was sent by Atlassian JIRA (v6.1.5#6160)