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

uv3 previous call in list style iterators not quite right

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 3.0.0SDK
    • Core Java Framework
    • None

    Description

      Java has a ListIterator interface, which defines previous() and next() such that repeated operations of next(), previous(), ... return the same item. This means that the next impl returns the current item and then advances the position, while the previous impl decrements the position (first) and then returns that item.

      v3 added impl of ListIterator to fsIterator, but implemented this backwards for previous. Change this to comply with the definition in listIterator. Also, change other list-iterator like things. that have the same issue. This change should not cause backwards compatibility issues, because v2 didn't implement ListIterator interface for FsIterators.

      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: