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

Comparing jsr166/src/main/java/util/LinkedList.java (file contents):
Revision 1.35 by jsr166, Sun May 29 16:36:48 2005 UTC vs.
Revision 1.36 by jsr166, Sat Jun 18 01:56:01 2005 UTC

# Line 6 | Line 6
6   */
7  
8   package java.util;
9 + import java.util.*; // for javadoc
10  
11   /**
12   * Linked list implementation of the <tt>List</tt> interface.  Implements all
# Line 144 | Line 145 | public class LinkedList<E>
145      }
146  
147      /**
148 <     * Inserts the given element at the beginning of this list.
148 >     * Inserts the specified element at the beginning of this list.
149       *
150 <     * @param e the element to be inserted at the beginning of this list
150 >     * @param e the element to add
151       */
152      public void addFirst(E e) {
153          addBefore(e, header.next);
154      }
155  
156      /**
157 <     * Appends the given element to the end of this list.  (Identical in
158 <     * function to the <tt>add</tt> method; included only for consistency.)
157 >     * Appends the specified element to the end of this list.
158 >     *
159 >     * <p>This method is equivalent to {@link #add}.
160       *
161 <     * @param e the element to be inserted at the end of this list
161 >     * @param e the element to add
162       */
163      public void addLast(E e) {
164          addBefore(e, header);
# Line 187 | Line 189 | public class LinkedList<E>
189      /**
190       * Appends the specified element to the end of this list.
191       *
192 +     * <p>This method is equivalent to {@link #addLast}.
193 +     *
194       * @param e element to be appended to this list
195       * @return <tt>true</tt> (as per the spec for {@link Collection#add})
196       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines