[cvs] / jsr166 / src / main / java / util / Vector.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/Vector.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8