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

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java (file contents):
Revision 1.22 by tim, Thu Jan 15 15:10:31 2004 UTC vs.
Revision 1.23 by dl, Tue Jan 20 04:35:02 2004 UTC

# Line 838 | Line 838 | public class CopyOnWriteArrayList<E>
838       * when the iterator was constructed. No synchronization is
839       * needed while traversing the iterator. The iterator does
840       * <em>NOT</em> support the <tt>remove</tt> method.
841 +     * @return the iterator
842       */
843      public Iterator<E> iterator() {
844          return new COWIterator<E>(array(), 0);
# Line 850 | Line 851 | public class CopyOnWriteArrayList<E>
851       * needed while traversing the iterator. The iterator does
852       * <em>NOT</em> support the <tt>remove</tt>, <tt>set</tt>,
853       * or <tt>add</tt> methods.
854 +     * @return the iterator
855       *
856       */
857      public ListIterator<E> listIterator() {
# Line 868 | Line 870 | public class CopyOnWriteArrayList<E>
870       *
871       * @param index index of first element to be returned from the
872       *                ListIterator (by a call to getNext).
873 +     * @return the iterator
874       * @throws IndexOutOfBoundsException index is out of range
875       *              (index &lt; 0 || index &gt; size()).
876       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines