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

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: lang.*, lang.math.*
    • Labels:
      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

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

              Dates

              • Created:
                Updated: