97 |
|
* using queues that may impose insertion restrictions (for |
98 |
|
* example capacity bounds), method <tt>offer</tt> is generally |
99 |
|
* preferable to method {@link Collection#add}, which can fail to |
100 |
< |
* inserts an element only by throwing an exception. |
100 |
> |
* insert an element only by throwing an exception. |
101 |
|
* |
102 |
< |
* @param o the element to insert. |
102 |
> |
* @param o the element to add. |
103 |
|
* @return <tt>true</tt> if it was possible to add the element to |
104 |
< |
* this queue, else <tt>false</tt> |
105 |
< |
* @throws NullPointerException if the specified element is <tt>null</tt>. |
104 |
> |
* this queue, else <tt>false</tt> |
105 |
> |
* @throws NullPointerException if the specified element is <tt>null</tt> |
106 |
|
*/ |
107 |
|
boolean offer(E o); |
108 |
|
|