Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5677

uv3 internal list iterators - align with definition of previous

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0SDK-beta
    • 3.0.0SDK
    • Core Java Framework
    • None

    Description

      The Java definition of previous and next says that next followed by previous followed by next etc. always returns the same value.

      In our impls, this means that

      • next returns the currently pointed-to object, then advances, and
      • previous first goes backwards, and then returns that object

      Some of our internal implementations implement previous by returning the currently pointed-to object and then goes backwards. Fix the implementations and uses (if any) (including the hasPrevious) to do this following the same conventions as Java.

      Attachments

        Issue Links

          Activity

            People

              schor Marshall Schor
              schor Marshall Schor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: