5 |
|
*/ |
6 |
|
|
7 |
|
package jsr166x; // XXX This belongs in java.util!!! XXX |
8 |
+ |
|
9 |
|
import java.util.*; // XXX This import goes away XXX |
10 |
|
|
11 |
|
/** |
382 |
|
* Retrieves, but does not remove, the head of the queue represented by |
383 |
|
* this deque, returning {@code null} if this deque is empty. |
384 |
|
* |
385 |
< |
* <p>This method is equivalent to {@link #peekFirst()} |
385 |
> |
* <p>This method is equivalent to {@link #peekFirst()}. |
386 |
|
* |
387 |
|
* @return the head of the queue represented by this deque, or |
388 |
|
* {@code null} if this deque is empty |
394 |
|
* this deque. This method differs from the {@code peek} method only in |
395 |
|
* that it throws an exception if this deque is empty. |
396 |
|
* |
397 |
< |
* <p>This method is equivalent to {@link #getFirst()} |
397 |
> |
* <p>This method is equivalent to {@link #getFirst()}. |
398 |
|
* |
399 |
|
* @return the head of the queue represented by this deque |
400 |
|
* @throws NoSuchElementException if this deque is empty |