32 |
|
* @return <tt>true</tt> (as per the general contract of |
33 |
|
* <tt>Collection.add</tt>). |
34 |
|
* |
35 |
< |
* @throws NullPointerException if the element is null |
35 |
> |
* @throws NullPointerException if the specified element is <tt>null</tt> |
36 |
|
*/ |
37 |
|
public boolean add(E o) { |
38 |
|
if (offer(o)) |
54 |
|
* @param c collection whose elements are to be added to this queue |
55 |
|
* @return <tt>true</tt> if this collection changed as a result of the |
56 |
|
* call. |
57 |
< |
* @throws NullPointerException if <tt>c</tt> is <tt>null</tt> |
58 |
< |
* |
57 |
> |
* @throws NullPointerException if <tt>c</tt> or any element in <tt>c</tt> |
58 |
> |
* is <tt>null</tt> |
59 |
> |
* |
60 |
|
*/ |
61 |
|
public boolean addAll(Collection<? extends E> c) { |
62 |
|
return super.addAll(c); |