193 |
|
* <p>This method is equivalent to {@link #addLast}. |
194 |
|
* |
195 |
|
* @param e element to be appended to this list |
196 |
< |
* @return <tt>true</tt> (as per the spec for {@link Collection#add}) |
196 |
> |
* @return <tt>true</tt> (as specified by {@link Collection#add}) |
197 |
|
*/ |
198 |
|
public boolean add(E e) { |
199 |
|
addBefore(e, header); |
486 |
|
* Adds the specified element as the tail (last element) of this list. |
487 |
|
* |
488 |
|
* @param e the element to add |
489 |
< |
* @return <tt>true</tt> (as per the spec for {@link Queue#offer}) |
489 |
> |
* @return <tt>true</tt> (as specified by {@link Queue#offer}) |
490 |
|
* @since 1.5 |
491 |
|
*/ |
492 |
|
public boolean offer(E e) { |
498 |
|
* Inserts the specified element at the front of this list. |
499 |
|
* |
500 |
|
* @param e the element to insert |
501 |
< |
* @return <tt>true</tt> (as per the spec for {@link Deque#offerFirst}) |
501 |
> |
* @return <tt>true</tt> (as specified by {@link Deque#offerFirst}) |
502 |
|
* @since 1.6 |
503 |
|
*/ |
504 |
|
public boolean offerFirst(E e) { |