372 |
|
* @return <tt>true</tt> if an element was removed as a result of this call |
373 |
|
* @throws ClassCastException if the class of the specified element |
374 |
|
* is incompatible with this deque |
375 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
375 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
376 |
|
* @throws NullPointerException if the specified element is null |
377 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
377 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
378 |
|
*/ |
379 |
|
boolean removeFirstOccurrence(Object o); |
380 |
|
|
390 |
|
* @return <tt>true</tt> if an element was removed as a result of this call |
391 |
|
* @throws ClassCastException if the class of the specified element |
392 |
|
* is incompatible with this deque |
393 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
393 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
394 |
|
* @throws NullPointerException if the specified element is null |
395 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
395 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
396 |
|
*/ |
397 |
|
boolean removeLastOccurrence(Object o); |
398 |
|
|
567 |
|
* @return <tt>true</tt> if this deque changed as a result of the call |
568 |
|
* @throws ClassCastException if the class of the specified element |
569 |
|
* is incompatible with this deque |
570 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
570 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
571 |
|
* @throws NullPointerException if the specified element is null |
572 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
572 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
573 |
|
*/ |
574 |
|
boolean remove(Object o); |
575 |
|
|
582 |
|
* @return <tt>true</tt> if this deque contains the specified element |
583 |
|
* @throws ClassCastException if the class of the specified element |
584 |
|
* is incompatible with this deque |
585 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
585 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
586 |
|
* @throws NullPointerException if the specified element is null |
587 |
< |
* (<a href="Collection.html#optional-restrictions">optional</a>) |
587 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>) |
588 |
|
*/ |
589 |
|
public boolean contains(Object o); |
590 |
|
|