381 |
|
* Retrieves, but does not remove, the head of the queue represented by |
382 |
|
* this deque, returning {@code null} if this deque is empty. |
383 |
|
* |
384 |
< |
* <p>This method is equivalent to {@link #peekFirst()} |
384 |
> |
* <p>This method is equivalent to {@link #peekFirst()}. |
385 |
|
* |
386 |
|
* @return the head of the queue represented by this deque, or |
387 |
|
* {@code null} if this deque is empty |
393 |
|
* this deque. This method differs from the {@code peek} method only in |
394 |
|
* that it throws an exception if this deque is empty. |
395 |
|
* |
396 |
< |
* <p>This method is equivalent to {@link #getFirst()} |
396 |
> |
* <p>This method is equivalent to {@link #getFirst()}. |
397 |
|
* |
398 |
|
* @return the head of the queue represented by this deque |
399 |
|
* @throws NoSuchElementException if this deque is empty |