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

Comparing jsr166/src/main/java/util/Vector.java (file contents):
Revision 1.17 by jsr166, Mon Jun 26 00:17:48 2006 UTC vs.
Revision 1.18 by jsr166, Mon Jun 26 00:25:04 2006 UTC

# Line 563 | Line 563 | public class Vector<E>
563       * increased if its size becomes greater than its capacity.
564       *
565       * <p>This method is identical in functionality to the
566 <     * {@link #remove(Object)} method (which is part of the
567 <     * {@link List} interface).
566 >     * {@link #add(Object) add(E)}
567 >     * method (which is part of the {@link List} interface).
568       *
569       * @param   obj   the component to be added
570       */
# Line 581 | Line 581 | public class Vector<E>
581       * object's index is shifted downward to have an index one smaller
582       * than the value it had previously.
583       *
584 <     * <p>This method is identical in functionality to the remove(Object)
585 <     * method (which is part of the List interface).
584 >     * <p>This method is identical in functionality to the
585 >     * {@link #remove(Object)} method (which is part of the
586 >     * {@link List} interface).
587       *
588       * @param   obj   the component to be removed
589       * @return  {@code true} if the argument was a component of this
590       *          vector; {@code false} otherwise.
590     * @see     List#remove(Object)
591     * @see     List
591       */
592      public synchronized boolean removeElement(Object obj) {
593          modCount++;
# Line 766 | Line 765 | public class Vector<E>
765       * Shifts any subsequent elements to the left (subtracts one from their
766       * indices).  Returns the element that was removed from the Vector.
767       *
768 <     * @exception ArrayIndexOutOfBoundsException index out of range (index
769 <     *            &lt; 0 || index &gt;= size())
768 >     * @throws ArrayIndexOutOfBoundsException if the index is out of range
769 >     *         ({@code index < 0 || index >= size()})
770       * @param index the index of the element to be removed
771       * @return element that was removed
772       * @since 1.2
# Line 886 | Line 885 | public class Vector<E>
885       *              specified collection
886       * @param c elements to be inserted into this Vector
887       * @return {@code true} if this Vector changed as a result of the call
888 <     * @exception ArrayIndexOutOfBoundsException index out of range (index
889 <     *            &lt; 0 || index &gt; size())
888 >     * @throws ArrayIndexOutOfBoundsException if the index is out of range
889 >     *         ({@code index < 0 || index > size()})
890       * @throws NullPointerException if the specified collection is null
891       * @since 1.2
892       */
# Line 1162 | Line 1161 | public class Vector<E>
1161       * @param fromIndex low endpoint (inclusive) of the subList
1162       * @param toIndex high endpoint (exclusive) of the subList
1163       * @return a view of the specified range within this List
1164 <     * @throws IndexOutOfBoundsException endpoint index value out of range
1165 <     *         <code>(fromIndex &lt; 0 || toIndex &gt; size)</code>
1166 <     * @throws IllegalArgumentException endpoint indices out of order
1167 <     *         <code>(fromIndex &gt; toIndex)</code>
1164 >     * @throws IndexOutOfBoundsException if an endpoint index value is out of range
1165 >     *         {@code (fromIndex < 0 || toIndex > size)}
1166 >     * @throws IllegalArgumentException if the endpoint indices are out of order
1167 >     *         {@code (fromIndex > toIndex)}
1168       */
1169      public synchronized List<E> subList(int fromIndex, int toIndex) {
1170          return new VectorSubList(this, this, fromIndex, fromIndex, toIndex);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines