You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2014/01/12 11:10:51 UTC

[jira] [Updated] (LANG-834) Validate: add inclusiveBetween(long start, long end, long value) methods

     [ 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)