68 |
|
* @see Vector |
69 |
|
* @see Collections#synchronizedList(List) |
70 |
|
* @since 1.2 |
71 |
< |
* @param <E> the base class of all elements held in this collection |
71 |
> |
* @param <E> the type of elements held in this collection |
72 |
|
*/ |
73 |
|
|
74 |
|
public class LinkedList<E> |
487 |
|
/** |
488 |
|
* Adds the specified element as the tail (last element) of this list. |
489 |
|
* |
490 |
< |
* @param x the element to add. |
490 |
> |
* @param o the element to add. |
491 |
|
* @return <tt>true</tt> (as per the general contract of |
492 |
|
* <tt>Queue.offer</tt>) |
493 |
|
* @since 1.5 |
494 |
|
*/ |
495 |
< |
public boolean offer(E x) { |
496 |
< |
return add(x); |
495 |
> |
public boolean offer(E o) { |
496 |
> |
return add(o); |
497 |
|
} |
498 |
|
|
499 |
|
/** |