Skip to content

Tag Archives: java-interfaces

The push(E e) method of BlockingDeque pushes an element onto the stack represented by this deque. It inserts the element passed in the parameter to… Read More
The offer(E e) method of BlockingDeque inserts the element passed in the parameter to the end of the Deque. If the container’s capacity has exceeded,… Read More
The putFirst(E e) method of BlockingDeque inserts the specified element at the front of the queue represented by this deque. If the Deque is capacity… Read More
The putLast(E e) method of BlockingDeque inserts the specified element into the queue represented by this deque (in other words, at the tail/end of this… Read More
The offerLast(E e) method of BlockingDeque inserts the element passed in the parameter at the end of the Deque container. If the container’s capacity has… Read More
The iterator() method of BlockingDeque returns an iterator over the elements in this deque in a proper sequence. The elements will be returned in order… Read More
The peek() method of BlockingDeque returns the front element in the Deque container. It returns null if the container is empty. Syntax: public E peek()… Read More
The contains(Object o) method of BlockingDeque checks if the passed element in the parameter exists in the container or not. It returns true if the… Read More
The element() method of BlockingDeque returns the element at the front the container. It does not delete the element in the container. This method returns… Read More
The put(E e) method of BlockingDeque inserts the specified element into the queue represented by this deque (in other words, at the tail of this… Read More
The poll() method of BlockingDeque returns the front element in the Deque container and deletes it. It returns null if the container is empty. Syntax:… Read More
The addLast(E e) method of BlockingDeque inserts the element passed in the parameter to the end of the Deque if there is space. If the… Read More
The offerFirst(E e) method of BlockingDeque inserts the element passed in the parameter at the front of the Deque container. If the container’s capacity has… Read More
The addFirst(E e) method of BlockingDeque inserts the element passed in the parameter to the front of the Deque if there is space. If the… Read More
The pollFirst() method of BlockingDeque returns the front element in the Deque container, and deletes it. It returns null if the container is empty. Syntax:… Read More