- <init>
Constructs a deque initially containing the elements of the given collection,
added in traversal ord
- add
Inserts the specified element at the tail of this deque. As the deque is
unbounded, this method will
- size
Returns the number of elements in this deque. If this deque contains more than
Integer.MAX_VALUE ele
- pollFirst
- isEmpty
Returns true if this collection contains no elements.
- addFirst
Inserts the specified element at the front of this deque. As the deque is
unbounded, this method wil
- addLast
Inserts the specified element at the end of this deque. As the deque is
unbounded, this method will
- poll
- remove
Removes the first element e such that o.equals(e), if such an element exists in
this deque. If the d
- clear
Removes all of the elements from this deque.
- removeFirst
- iterator
Returns an iterator over the elements in this deque in proper sequence. The
elements will be returne