21 |
|
* insertion of <tt>null</tt> elements, along with methods {@link |
22 |
|
* Queue#peek}, {@link Queue#poll}, {@link Collection#size}, and a |
23 |
|
* {@link Collection#iterator} supporting {@link |
24 |
< |
* Iterator#remove}. Typically, additional methods will be overriden |
24 |
> |
* Iterator#remove}. Typically, additional methods will be overridden |
25 |
|
* as well. If these requirements cannot be met, consider instead |
26 |
|
* subclassing {@link AbstractCollection}. |
27 |
|
* |
43 |
|
* Adds the specified element to this queue. This implementation |
44 |
|
* returns <tt>true</tt> if <tt>offer</tt> succeeds, else |
45 |
|
* throws an IllegalStateException. |
46 |
< |
* th |
46 |
> |
* |
47 |
|
* @param o the element |
48 |
|
* @return <tt>true</tt> (as per the general contract of |
49 |
|
* <tt>Collection.add</tt>). |