375 |
|
* @return {@code true} if an element was removed as a result of this call |
376 |
|
* @throws ClassCastException if the class of the specified element |
377 |
|
* is incompatible with this deque |
378 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
378 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
379 |
|
* @throws NullPointerException if the specified element is null |
380 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
380 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
381 |
|
*/ |
382 |
|
boolean removeFirstOccurrence(Object o); |
383 |
|
|
393 |
|
* @return {@code true} if an element was removed as a result of this call |
394 |
|
* @throws ClassCastException if the class of the specified element |
395 |
|
* is incompatible with this deque |
396 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
396 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
397 |
|
* @throws NullPointerException if the specified element is null |
398 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
398 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
399 |
|
*/ |
400 |
|
boolean removeLastOccurrence(Object o); |
401 |
|
|
570 |
|
* @return {@code true} if this deque changed as a result of the call |
571 |
|
* @throws ClassCastException if the class of the specified element |
572 |
|
* is incompatible with this deque |
573 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
573 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
574 |
|
* @throws NullPointerException if the specified element is null |
575 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
575 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
576 |
|
*/ |
577 |
|
boolean remove(Object o); |
578 |
|
|
585 |
|
* @return {@code true} if this deque contains the specified element |
586 |
|
* @throws ClassCastException if the class of the specified element |
587 |
|
* is incompatible with this deque |
588 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
588 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
589 |
|
* @throws NullPointerException if the specified element is null |
590 |
< |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
590 |
> |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
591 |
|
*/ |
592 |
|
boolean contains(Object o); |
593 |
|
|