274 |
|
* @return {@code true} if this queue changed as a result of the call |
275 |
|
* @throws ClassCastException if the class of the specified element |
276 |
|
* is incompatible with this queue |
277 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
277 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
278 |
|
* @throws NullPointerException if the specified element is null |
279 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
279 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
280 |
|
*/ |
281 |
|
boolean remove(Object o); |
282 |
|
|
289 |
|
* @return {@code true} if this queue contains the specified element |
290 |
|
* @throws ClassCastException if the class of the specified element |
291 |
|
* is incompatible with this queue |
292 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
292 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
293 |
|
* @throws NullPointerException if the specified element is null |
294 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
294 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
295 |
|
*/ |
296 |
|
boolean contains(Object o); |
297 |
|
|