public interface Deque<E>
LinkedList
s.Modifier and Type | Method and Description |
---|---|
E |
peekEnd()
Show the end of this
Deque . |
E |
peekHead()
Show the head of this
Deque . |
Deque<E> |
popEnd()
Create a new
Deque without the end of the exisiting Deque . |
Deque<E> |
popHead()
Create a new
Deque without the head of the existing Deque . |
Deque<E> |
pushEnd(E e)
Create a new
Deque with `e` as the end element. |
Deque<E> |
pushHead(E e)
Create a new
Deque with `e` as head element. |
Deque<E> pushHead(E e)
Deque
with `e` as head element.e
- element to be pushed to the head of the queue.Deque<E> pushEnd(E e)
Deque
with `e` as the end element.e
- element to be pushed to the end of the queue.E peekHead()
Deque
.E peekEnd()
Deque
.Copyright © 2017. All rights reserved.