313 |
|
* If the deque does not contain the element, it is unchanged. |
314 |
|
* More formally, removes the first element <tt>e</tt> such that |
315 |
|
* <tt>o.equals(e)</tt> (if such an element exists). |
316 |
< |
* Returns true if this deque contained the specified element (or |
317 |
< |
* equivalently, if this deque changed as a result of the call). |
316 |
> |
* Returns <tt>true</tt> if this deque contained the specified element |
317 |
> |
* (or equivalently, if this deque changed as a result of the call). |
318 |
|
* |
319 |
|
* @param o element to be removed from this deque, if present |
320 |
|
* @return <tt>true</tt> if the deque contained the specified element |
341 |
|
* If the deque does not contain the element, it is unchanged. |
342 |
|
* More formally, removes the last element <tt>e</tt> such that |
343 |
|
* <tt>o.equals(e)</tt> (if such an element exists). |
344 |
< |
* Returns true if this deque contained the specified element (or |
345 |
< |
* equivalently, if this deque changed as a result of the call). |
344 |
> |
* Returns <tt>true</tt> if this deque contained the specified element |
345 |
> |
* (or equivalently, if this deque changed as a result of the call). |
346 |
|
* |
347 |
|
* @param o element to be removed from this deque, if present |
348 |
|
* @return <tt>true</tt> if the deque contained the specified element |
613 |
|
* If the deque does not contain the element, it is unchanged. |
614 |
|
* More formally, removes the first element <tt>e</tt> such that |
615 |
|
* <tt>o.equals(e)</tt> (if such an element exists). |
616 |
< |
* Returns true if this deque contained the specified element (or |
617 |
< |
* equivalently, if this deque changed as a result of the call). |
616 |
> |
* Returns <tt>true</tt> if this deque contained the specified element |
617 |
> |
* (or equivalently, if this deque changed as a result of the call). |
618 |
|
* |
619 |
|
* <p>This method is equivalent to {@link #removeFirstOccurrence}. |
620 |
|
* |
651 |
|
* maintained by this deque. (In other words, this method must allocate |
652 |
|
* a new array). The caller is thus free to modify the returned array. |
653 |
|
* |
654 |
+ |
* <p>This method acts as bridge between array-based and collection-based |
655 |
+ |
* APIs. |
656 |
+ |
* |
657 |
|
* @return an array containing all of the elements in this deque |
658 |
|
*/ |
659 |
|
public Object[] toArray() { |