Removes the first occurrence of the specified element from this deque.
If the deque does not contain the element, it is unchanged.
More formally, removes the first element {@code e} such that
<tt>(o==null ? e==null : o.equals(e))</tt>
(if such an element exists).
Returns {@code true} if this deque contained the specified element
(or equivalently, if this deque changed as a result of the call).
@param o element to be removed from this deque, if present
@return {@code true} if an element was removed as a result of this call
@throws ClassCastException if the class of the specified element
is incompatible with this deque
(<a href="Collection.html#optional-restrictions">optional</a>)
@throws NullPointerException if the specified element is null and this
deque does not permit null elements
(<a href="Collection.html#optional-restrictions">optional</a>)
Removes the first occurrence of the specified element from this deque. If the deque does not contain the element, it is unchanged. More formally, removes the first element {@code e} such that <tt>(o==null ? e==null : o.equals(e))</tt> (if such an element exists). Returns {@code true} if this deque contained the specified element (or equivalently, if this deque changed as a result of the call).
@param o element to be removed from this deque, if present @return {@code true} if an element was removed as a result of this call @throws ClassCastException if the class of the specified element is incompatible with this deque (<a href="Collection.html#optional-restrictions">optional</a>) @throws NullPointerException if the specified element is null and this deque does not permit null elements (<a href="Collection.html#optional-restrictions">optional</a>)