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.30 by jsr166, Tue Apr 26 01:43:01 2005 UTC vs.
Revision 1.31 by jsr166, Tue Apr 26 19:54:03 2005 UTC

# Line 329 | Line 329 | public class CopyOnWriteArrayList<E>
329       *
330       * @param  index index of element to return.
331       * @return the element at the specified position in this list.
332 <     * @throws    IndexOutOfBoundsException if index is out of range <tt>(index
333 <     *            &lt; 0 || index &gt;= size())</tt>.
332 >     * @throws IndexOutOfBoundsException if the index is out of range
333 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
334       */
335      public E get(int index) {
336          E[] elementData = array();
# Line 345 | Line 345 | public class CopyOnWriteArrayList<E>
345       * @param index index of element to replace.
346       * @param element element to be stored at the specified position.
347       * @return the element previously at the specified position.
348 <     * @throws    IndexOutOfBoundsException if index out of range
349 <     *            <tt>(index &lt; 0 || index &gt;= size())</tt>.
348 >     * @throws IndexOutOfBoundsException if the index is out of range
349 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
350       */
351      public synchronized E set(int index, E element) {
352          int len = array.length;
# Line 386 | Line 386 | public class CopyOnWriteArrayList<E>
386       *
387       * @param index index at which the specified element is to be inserted.
388       * @param element element to be inserted.
389 <     * @throws    IndexOutOfBoundsException if index is out of range
390 <     *            <tt>(index &lt; 0 || index &gt; size())</tt>.
389 >     * @throws IndexOutOfBoundsException if the index is out of range
390 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
391       */
392      public synchronized void add(int index, E element) {
393          int len = array.length;
# Line 408 | Line 408 | public class CopyOnWriteArrayList<E>
408       *
409       * @param index the index of the element to removed.
410       * @return the element that was removed from the list.
411 <     * @throws    IndexOutOfBoundsException if index out of range <tt>(index
412 <     *            &lt; 0 || index &gt;= size())</tt>.
411 >     * @throws IndexOutOfBoundsException if the index is out of range
412 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
413       */
414      public synchronized E remove(int index) {
415          int len = array.length;
# Line 683 | Line 683 | public class CopyOnWriteArrayList<E>
683       * @param index index at which to insert first element
684       *                from the specified collection.
685       * @param c elements to be inserted into this list.
686 <     * @throws IndexOutOfBoundsException if index out of range (index
687 <     *              &lt; 0 || index &gt; size()).
686 >     * @throws IndexOutOfBoundsException if the index is out of range
687 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
688       * @return true if any elements are added
689       */
690      public synchronized boolean addAll(int index, Collection<? extends E> c) {
# Line 877 | Line 877 | public class CopyOnWriteArrayList<E>
877       * @param index index of first element to be returned from the
878       *                ListIterator (by a call to getNext).
879       * @return the iterator
880 <     * @throws IndexOutOfBoundsException if index is out of range
881 <     *              (index &lt; 0 || index &gt; size()).
880 >     * @throws IndexOutOfBoundsException if the index is out of range
881 >     *         (<tt>index &lt; 0 || index &gt; size()</tt>).
882       */
883      public ListIterator<E> listIterator(final int index) {
884          E[] elementData = array();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines