- isEmpty
- push
Pushes an element onto the stack represented by this deque (in other words, at
the head of this dequ
- pop
Pops an element from the stack represented by this deque. In other words,
removes and returns the fi
- add
Inserts the specified element into the queue represented by this deque (in other
words, at the tail
- size
Returns the number of elements in this deque.
- peek
Retrieves, but does not remove, the head of the queue represented by this deque
(in other words, the
- addFirst
Inserts the specified element at the front of this deque if it is possible to do
so immediately with
- addLast
Inserts the specified element at the end of this deque if it is possible to do
so immediately withou
- removeFirst
Retrieves and removes the first element of this deque. This method differs from
#pollFirst only in t
- clear
- removeLast
Retrieves and removes the last element of this deque. This method differs from
#pollLast only in tha
- poll
Retrieves and removes the head of the queue represented by this deque (in other
words, the first ele