159 |
|
* the {@code BlockingDeque} in another thread. |
160 |
|
* |
161 |
|
* <p>This interface is a member of the |
162 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
162 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
163 |
|
* Java Collections Framework</a>. |
164 |
|
* |
165 |
|
* @since 1.6 |
370 |
|
* @return {@code true} if an element was removed as a result of this call |
371 |
|
* @throws ClassCastException if the class of the specified element |
372 |
|
* is incompatible with this deque |
373 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
373 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
374 |
|
* @throws NullPointerException if the specified element is null |
375 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
375 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
376 |
|
*/ |
377 |
|
boolean removeFirstOccurrence(Object o); |
378 |
|
|
388 |
|
* @return {@code true} if an element was removed as a result of this call |
389 |
|
* @throws ClassCastException if the class of the specified element |
390 |
|
* is incompatible with this deque |
391 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
391 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
392 |
|
* @throws NullPointerException if the specified element is null |
393 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
393 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
394 |
|
*/ |
395 |
|
boolean removeLastOccurrence(Object o); |
396 |
|
|
565 |
|
* @return {@code true} if this deque changed as a result of the call |
566 |
|
* @throws ClassCastException if the class of the specified element |
567 |
|
* is incompatible with this deque |
568 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
568 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
569 |
|
* @throws NullPointerException if the specified element is null |
570 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
570 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
571 |
|
*/ |
572 |
|
boolean remove(Object o); |
573 |
|
|
580 |
|
* @return {@code true} if this deque contains the specified element |
581 |
|
* @throws ClassCastException if the class of the specified element |
582 |
|
* is incompatible with this deque |
583 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
583 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
584 |
|
* @throws NullPointerException if the specified element is null |
585 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
585 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
586 |
|
*/ |
587 |
|
boolean contains(Object o); |
588 |
|
|