Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354169

JavaDoc states that Iterator.remove() is linear in the LinkedBlockingDeque

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • None
    • core-libs
    • None

      In the JavaDoc of the LinkedBlockingDeque, it states that iterator.remove() is an example of a linear time method. Since the LBD needs Node with pointers for prev and next, this method would typically execute in constant time. The comment should be changed to reflect this.

            hkabutz Heinz Kabutz
            hkabutz Heinz Kabutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: