commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1387) Add Span classes to handle checks for overlaps, containment, equality, etc.
Date Fri, 16 Mar 2018 18:55:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402352#comment-16402352
] 

ASF GitHub Bot commented on LANG-1387:
--------------------------------------

GitHub user Claudenw opened a pull request:

    https://github.com/apache/commons-lang/pull/320

    Initial implementation of Span for LANG-1387

    Implementation of LANG-1387
    
    Added underflow and overflow checks ot NumberUtils.
    Added IntSpan and LongSpan classes.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Claudenw/commons-lang master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/320.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #320
    
----
commit 152257e7e03ccfe778dd0c51e95c236e4d4abae4
Author: Claude Warren <claude@...>
Date:   2018-03-16T16:43:56Z

    Added IntSpan, LongSpan and test cases.
    
    Added underflow and overflow checks ot NumberUtils.
    Added IntSpan and LongSpan classes.

commit 3d8d191733766f1e71953af08d166642490ddcdc
Author: Claude Warren <claude@...>
Date:   2018-03-16T18:52:19Z

    Fixed issues relating to java 8.

----


> Add Span classes to handle checks for overlaps, containment, equality, etc.
> ---------------------------------------------------------------------------
>
>                 Key: LANG-1387
>                 URL: https://issues.apache.org/jira/browse/LANG-1387
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*, lang.math.*
>    Affects Versions: 3.7
>            Reporter: Claude Warren
>            Priority: Minor
>
> This is a contribution of a span class as discussed on the mailing list.
> The classes are int and long based and can:
>  # determine if points are within the span.
>  # determine if one span contains another span
>  # determine if two spans overlap
>  # do not have to have 0 (zero) as the index origin.
>  # determine the length of the span
>  # determine the last position in the span.
>  # determine the first position in the span.
> Changes to Number Utils required to detect underflow and overflow calculations.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message