You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/03 17:52:00 UTC
[jira] [Work logged] (LANG-1644) Check if number is hexadecimal
[ https://issues.apache.org/jira/browse/LANG-1644?focusedWorklogId=560570&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-560570 ]
ASF GitHub Bot logged work on LANG-1644:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Mar/21 17:51
Start Date: 03/Mar/21 17:51
Worklog Time Spent: 10m
Work Description: arturobernalg opened a new pull request #727:
URL: https://github.com/apache/commons-lang/pull/727
Checks whether the given String is a hex number.
* NumberUtils.isHexNumber(null)) = false
* NumberUtils.isHexNumber("")) = false
* NumberUtils.isHexNumber("0x12345678")) = true
* NumberUtils.isHexNumber("0x7fffffffffffffff")) = true
* NumberUtils.isHexNumber("0x7FFFFFFFFFFFFFFF")) = true
* NumberUtils.isHexNumber("5D0")) = true
* NumberUtils.isHexNumber("0x")) = false
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 560570)
Remaining Estimate: 0h
Time Spent: 10m
> Check if number is hexadecimal
> ------------------------------
>
> Key: LANG-1644
> URL: https://issues.apache.org/jira/browse/LANG-1644
> Project: Commons Lang
> Issue Type: Improvement
> Reporter: Arturo Bernal
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> IMO would be fine have a method that given a String tell you if is a valid hexadecimal number instead of try to create the number. should be valid:
>
> * 5D0
> * 0x7FFFFFFFFFFFFFFF
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
Re: [jira] [Work logged] (LANG-1644) Check if number is hexadecimal
Posted by Gary Gregory <ga...@gmail.com>.
@arturobernalg
If you are looking to help this component, may I suggest my email "[lang]
Failing test on Java 16-EA."
Gary
On Wed, Mar 3, 2021, 12:52 ASF GitHub Bot (Jira) <ji...@apache.org> wrote:
>
> [
> https://issues.apache.org/jira/browse/LANG-1644?focusedWorklogId=560570&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-560570
> ]
>
> ASF GitHub Bot logged work on LANG-1644:
> ----------------------------------------
>
> Author: ASF GitHub Bot
> Created on: 03/Mar/21 17:51
> Start Date: 03/Mar/21 17:51
> Worklog Time Spent: 10m
> Work Description: arturobernalg opened a new pull request #727:
> URL: https://github.com/apache/commons-lang/pull/727
>
>
> Checks whether the given String is a hex number.
>
> * NumberUtils.isHexNumber(null)) = false
> * NumberUtils.isHexNumber("")) = false
> * NumberUtils.isHexNumber("0x12345678")) = true
> * NumberUtils.isHexNumber("0x7fffffffffffffff")) = true
> * NumberUtils.isHexNumber("0x7FFFFFFFFFFFFFFF")) = true
> * NumberUtils.isHexNumber("5D0")) = true
> * NumberUtils.isHexNumber("0x")) = false
>
>
> ----------------------------------------------------------------
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> For queries about this service, please contact Infrastructure at:
> users@infra.apache.org
>
>
> Issue Time Tracking
> -------------------
>
> Worklog Id: (was: 560570)
> Remaining Estimate: 0h
> Time Spent: 10m
>
> > Check if number is hexadecimal
> > ------------------------------
> >
> > Key: LANG-1644
> > URL: https://issues.apache.org/jira/browse/LANG-1644
> > Project: Commons Lang
> > Issue Type: Improvement
> > Reporter: Arturo Bernal
> > Priority: Minor
> > Time Spent: 10m
> > Remaining Estimate: 0h
> >
> > IMO would be fine have a method that given a String tell you if is a
> valid hexadecimal number instead of try to create the number. should be
> valid:
> >
> > * 5D0
> > * 0x7FFFFFFFFFFFFFFF
> >
>
>
>
> --
> This message was sent by Atlassian Jira
> (v8.3.4#803005)
>