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

Comparing jsr166/src/jsr166x/ArrayDeque.java (file contents):
Revision 1.4 by jsr166, Tue Nov 24 03:57:04 2009 UTC vs.
Revision 1.7 by jsr166, Tue Sep 7 06:01:23 2010 UTC

# Line 13 | Line 13 | import java.io.*;
13   * usage.  They are not thread-safe; in the absence of external
14   * synchronization, they do not support concurrent access by multiple threads.
15   * Null elements are prohibited.  This class is likely to be faster than
16 < * {@link Stack} when used as as a stack, and faster than {@link LinkedList}
16 > * {@link Stack} when used as a stack, and faster than {@link LinkedList}
17   * when used as a queue.
18   *
19   * <p>Most <tt>ArrayDeque</tt> operations run in amortized constant time.
# Line 504 | Line 504 | public class ArrayDeque<E> extends Abstr
504  
505      /**
506       * Pops an element from the stack represented by this deque.  In other
507 <     * words, removes and returns the the first element of this deque.
507 >     * words, removes and returns the first element of this deque.
508       *
509       * <p>This method is equivalent to {@link #removeFirst()}.
510       *
# Line 667 | Line 667 | public class ArrayDeque<E> extends Abstr
667              do {
668                  elements[i] = null;
669                  i = (i + 1) & mask;
670 <            } while(i != t);
670 >            } while (i != t);
671          }
672      }
673  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines