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.21 by dl, Tue Mar 8 12:27:06 2005 UTC vs.
Revision 1.22 by dl, Wed Mar 23 01:06:26 2005 UTC

# Line 152 | Line 152 | public class LinkedList<E>
152      }
153  
154      /**
155 <     * Appends the given element to the end of this list.  (Identical in
155 >     * Appends the given element at the end of this list.  (Identical in
156       * function to the <tt>add</tt> method; included only for consistency.)
157       *
158       * @param o the element to be inserted at the end of this list.
# Line 184 | Line 184 | public class LinkedList<E>
184      }
185  
186      /**
187 <     * Appends the specified element to the end of this list.
187 >     * Appends the specified element at the end of this list.
188       *
189       * @param o element to be appended to this list.
190       * @return <tt>true</tt> (as per the general contract of
# Line 225 | Line 225 | public class LinkedList<E>
225      }
226  
227      /**
228 <     * Appends all of the elements in the specified collection to the end of
228 >     * Appends all of the elements in the specified collection at the end of
229       * this list, in the order that they are returned by the specified
230       * collection's iterator.  The behavior of this operation is undefined if
231       * the specified collection is modified while the operation is in
# Line 497 | Line 497 | public class LinkedList<E>
497  
498      // Deque operations
499      /**
500 <     * Inserts the specified element to the front of this list.
500 >     * Inserts the specified element at the front of this list.
501       *
502 <     * @param o the element to insert
502 >     * @param e the element to insert
503       * @return <tt>true</tt> (as per the spec for {@link Deque#offerFirst})
504       * @since 1.6
505       */
506 <    public boolean offerFirst(E o) {
507 <        addFirst(o);
506 >    public boolean offerFirst(E e) {
507 >        addFirst(e);
508          return true;
509      }
510  
511      /**
512 <     * Inserts the specified element to the end of this list.
512 >     * Inserts the specified element at the end of this list.
513       *
514 <     * @param o the element to insert
514 >     * @param e the element to insert
515       * @return <tt>true</tt> (as per the spec for {@link Deque#offerLast})
516       * @since 1.6
517       */
518 <    public boolean offerLast(E o) {
519 <        addLast(o);
518 >    public boolean offerLast(E e) {
519 >        addLast(e);
520          return true;
521      }
522  
# Line 578 | Line 578 | public class LinkedList<E>
578  
579      /**
580       * Pushes an element onto the stack represented by this list.  In other
581 <     * words, inserts the element to the front of this list.
581 >     * words, inserts the element at the front of this list.
582       *
583       * <p>This method is equivalent to {@link #addFirst}.
584       *
585 <     * @param o the element to push
585 >     * @param e the element to push
586       * @since 1.6
587       */
588 <    public void push(E o) {
589 <        addFirst(o);
588 >    public void push(E e) {
589 >        addFirst(e);
590      }
591  
592      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines