140 |
|
* the {@code BlockingQueue} in another thread. |
141 |
|
* |
142 |
|
* <p>This interface is a member of the |
143 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
143 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
144 |
|
* Java Collections Framework</a>. |
145 |
|
* |
146 |
|
* @since 1.5 |
273 |
|
* @return {@code true} if this queue changed as a result of the call |
274 |
|
* @throws ClassCastException if the class of the specified element |
275 |
|
* is incompatible with this queue |
276 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
276 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
277 |
|
* @throws NullPointerException if the specified element is null |
278 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
278 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
279 |
|
*/ |
280 |
|
boolean remove(Object o); |
281 |
|
|
288 |
|
* @return {@code true} if this queue contains the specified element |
289 |
|
* @throws ClassCastException if the class of the specified element |
290 |
|
* is incompatible with this queue |
291 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
291 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
292 |
|
* @throws NullPointerException if the specified element is null |
293 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
293 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
294 |
|
*/ |
295 |
|
boolean contains(Object o); |
296 |
|
|