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

Comparing jsr166/src/main/java/util/ArrayDeque.java (file contents):
Revision 1.1 by dl, Tue Dec 28 12:14:07 2004 UTC vs.
Revision 1.3 by dl, Tue Mar 8 17:52:02 2005 UTC

# Line 12 | Line 12 | import java.io.*;
12   * usage.  They are not thread-safe; in the absence of external
13   * synchronization, they do not support concurrent access by multiple threads.
14   * Null elements are prohibited.  This class is likely to be faster than
15 < * {@link Stack} when used as as a stack, and faster than {@link LinkedList}
15 > * {@link Stack} when used as a stack, and faster than {@link LinkedList}
16   * when used as a queue.
17   *
18   * <p>Most <tt>ArrayDeque</tt> operations run in amortized constant time.
# Line 503 | Line 503 | public class ArrayDeque<E> extends Abstr
503  
504      /**
505       * Pops an element from the stack represented by this deque.  In other
506 <     * words, removes and returns the the first element of this deque.
506 >     * words, removes and returns the first element of this deque.
507       *
508       * <p>This method is equivalent to {@link #removeFirst()}.
509       *
# Line 520 | Line 520 | public class ArrayDeque<E> extends Abstr
520       * adjusting head, tail, and size as necessary.  This can result in
521       * motion of elements backwards or forwards in the array.
522       *
523 <     * <p>This method is called delete rather than remove to emphasize the
524 <     * that that its semantics differ from those of List.remove(int).
523 >     * <p>This method is called delete rather than remove to emphasize
524 >     * that its semantics differ from those of List.remove(int).
525       *
526       * @return true if elements moved backwards
527       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines