1000 |
|
} |
1001 |
|
|
1002 |
|
public E poll() { return pollFirst(); } |
1003 |
– |
public E remove() { return removeFirst(); } |
1003 |
|
public E peek() { return peekFirst(); } |
1004 |
+ |
|
1005 |
+ |
/** |
1006 |
+ |
* @throws NoSuchElementException {@inheritDoc} |
1007 |
+ |
*/ |
1008 |
+ |
public E remove() { return removeFirst(); } |
1009 |
+ |
|
1010 |
+ |
/** |
1011 |
+ |
* @throws NoSuchElementException {@inheritDoc} |
1012 |
+ |
*/ |
1013 |
+ |
public E pop() { return removeFirst(); } |
1014 |
+ |
|
1015 |
+ |
/** |
1016 |
+ |
* @throws NoSuchElementException {@inheritDoc} |
1017 |
+ |
*/ |
1018 |
|
public E element() { return getFirst(); } |
1019 |
+ |
|
1020 |
+ |
/** |
1021 |
+ |
* @throws NullPointerException {@inheritDoc} |
1022 |
+ |
*/ |
1023 |
|
public void push(E e) { addFirst(e); } |
1007 |
– |
public E pop() { return removeFirst(); } |
1024 |
|
|
1025 |
|
/** |
1026 |
|
* Removes the first element {@code e} such that |