ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jdk7/java/util/ArrayDeque.java
(Generate patch)

Comparing jsr166/src/jdk7/java/util/ArrayDeque.java (file contents):
Revision 1.2 by jsr166, Wed Feb 20 12:27:14 2013 UTC vs.
Revision 1.4 by jsr166, Wed Nov 16 19:56:44 2016 UTC

# Line 488 | Line 488 | public class ArrayDeque<E> extends Abstr
488       * @return true if elements moved backwards
489       */
490      private boolean delete(int i) {
491 <        checkInvariants();
491 >        // checkInvariants();
492          final Object[] elements = this.elements;
493          final int mask = elements.length - 1;
494          final int h = head;
# Line 609 | Line 609 | public class ArrayDeque<E> extends Abstr
609          }
610      }
611  
612 +    /**
613 +     * This class is nearly a mirror-image of DeqIterator, using tail
614 +     * instead of head for initial cursor, and head instead of tail
615 +     * for fence.
616 +     */
617      private class DescendingIterator implements Iterator<E> {
613        /*
614         * This class is nearly a mirror-image of DeqIterator, using
615         * tail instead of head for initial cursor, and head instead of
616         * tail for fence.
617         */
618          private int cursor = tail;
619          private int fence = head;
620          private int lastRet = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines