231 |
|
|
232 |
|
/** |
233 |
|
* Retrieves and removes the first element of this deque. This method |
234 |
< |
* differs from the <tt>pollFirst</tt> method only in that it throws an |
234 |
> |
* differs from the {@link #pollFirst} method only in that it throws an |
235 |
|
* exception if this deque is empty. |
236 |
|
* |
237 |
|
* @return the first element of this deque |
241 |
|
|
242 |
|
/** |
243 |
|
* Retrieves and removes the last element of this deque. This method |
244 |
< |
* differs from the <tt>pollLast</tt> method only in that it throws an |
244 |
> |
* differs from the {@link #pollLast} method only in that it throws an |
245 |
|
* exception if this deque is empty. |
246 |
|
* |
247 |
|
* @return the last element of this deque |
269 |
|
|
270 |
|
/** |
271 |
|
* Retrieves, but does not remove, the first element of this |
272 |
< |
* deque. This method differs from the <tt>peekFirst</tt> method only |
272 |
> |
* deque. This method differs from the {@link #peekFirst} method only |
273 |
|
* in that it throws an exception if this deque is empty. |
274 |
|
* |
275 |
|
* @return the first element of this deque |
279 |
|
|
280 |
|
/** |
281 |
|
* Retrieves, but does not remove, the last element of this |
282 |
< |
* deque. This method differs from the <tt>peekLast</tt> method only |
282 |
> |
* deque. This method differs from the {@link #peekLast} method only |
283 |
|
* in that it throws an exception if this deque is empty. |
284 |
|
* |
285 |
|
* @return the last element of this deque |
367 |
|
|
368 |
|
/** |
369 |
|
* Retrieves and removes the head of the queue represented by this deque. |
370 |
< |
* This method differs from the <tt>poll</tt> method only in that it |
370 |
> |
* This method differs from the {@link #poll} method only in that it |
371 |
|
* throws an exception if this deque is empty. |
372 |
|
* |
373 |
|
* <p>This method is equivalent to {@link #removeFirst()}. |
390 |
|
|
391 |
|
/** |
392 |
|
* Retrieves, but does not remove, the head of the queue represented by |
393 |
< |
* this deque. This method differs from the <tt>peek</tt> method only in |
393 |
> |
* this deque. This method differs from the {@link #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()}. |