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

Claude Warren commented on LANG-1387:
-------------------------------------

is there any update on this?  Any further thinking about where to place this?

I think it does not belong in
 * Numbers as it is not a type of number (primes, complex, etc.)
 * Collections as it is not a collection unto itself.  It can be used to track 
position in collections but it does not have a reference or pointer to a 
collection of objects.

 

Is there a reason not to put it in lang?

 

Claude

 

> Add Span interfaces 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)

Reply via email to