Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1387

Add Span interfaces to handle checks for overlaps, containment, equality, etc.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.7
    • None
    • lang.*, lang.math.*
    • None

    Description

      This is a contribution of a span class as discussed on the mailing list.

      The classes are int and long based and can:

      1. determine if points are within the span.
      2. determine if one span contains another span
      3. determine if two spans overlap
      4. do not have to have 0 (zero) as the index origin.
      5. determine the length of the span
      6. determine the last position in the span.
      7. determine the first position in the span.

      Changes to Number Utils required to detect underflow and overflow calculations.

      Attachments

        Activity

          People

            Unassigned Unassigned
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: