You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2012/09/27 16:42:07 UTC
[jira] [Created] (LANG-834) Validate: add inclusiveBetween(long
start, long end, long value) methods
Sebb created LANG-834:
-------------------------
Summary: 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
Environment: 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.
Reporter: Sebb
--
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
[jira] [Updated] (LANG-834) Validate: add inclusiveBetween(long
start, long end, long value) methods
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated LANG-834:
----------------------
Attachment: LANG-834.patch
Sample implementation
> 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
> Environment: 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.
> Reporter: Sebb
> Attachments: LANG-834.patch
>
>
--
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