4 |
|
*/ |
5 |
|
|
6 |
|
package jsr166x; // XXX This belongs in java.util!!! XXX |
7 |
+ |
|
8 |
|
import java.util.*; // XXX This import goes away XXX |
9 |
|
import java.io.*; |
10 |
|
|
465 |
|
* Retrieves, but does not remove, the head of the queue represented by |
466 |
|
* this deque, returning {@code null} if this deque is empty. |
467 |
|
* |
468 |
< |
* <p>This method is equivalent to {@link #peekFirst} |
468 |
> |
* <p>This method is equivalent to {@link #peekFirst}. |
469 |
|
* |
470 |
|
* @return the head of the queue represented by this deque, or |
471 |
|
* {@code null} if this deque is empty |
479 |
|
* this deque. This method differs from the {@code peek} method only in |
480 |
|
* that it throws an exception if this deque is empty. |
481 |
|
* |
482 |
< |
* <p>This method is equivalent to {@link #getFirst} |
482 |
> |
* <p>This method is equivalent to {@link #getFirst}. |
483 |
|
* |
484 |
|
* @return the head of the queue represented by this deque |
485 |
|
* @throws NoSuchElementException if this deque is empty |