638 |
|
|
639 |
|
/** |
640 |
|
* Retrieves and removes the head of the queue represented by this deque. |
641 |
< |
* This method differs from {@link #poll poll} only in that it throws an |
641 |
> |
* This method differs from {@link #poll() poll()} only in that it throws an |
642 |
|
* exception if this deque is empty. |
643 |
|
* |
644 |
|
* <p>This method is equivalent to {@link #removeFirst() removeFirst}. |
664 |
|
|
665 |
|
/** |
666 |
|
* Retrieves, but does not remove, the head of the queue represented by |
667 |
< |
* this deque. This method differs from {@link #peek peek} only in that |
667 |
> |
* this deque. This method differs from {@link #peek() peek()} only in that |
668 |
|
* it throws an exception if this deque is empty. |
669 |
|
* |
670 |
|
* <p>This method is equivalent to {@link #getFirst() getFirst}. |