E
- element type.public interface Deque<E> extends Queue<E>
Modifier and Type | Method and Description |
---|---|
void |
addFirst(E e) |
void |
addLast(E e) |
Iterator<E> |
descendingIterator() |
E |
getFirst() |
E |
getLast() |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peekFirst() |
E |
peekLast() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
add, addAll, clear, contains, containsAll, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
void addFirst(E e)
void addLast(E e)
E getFirst()
E getLast()
boolean offerFirst(E e)
boolean offerLast(E e)
E peekFirst()
E peekLast()
E pollFirst()
E pollLast()
E pop()
void push(E e)
E removeFirst()
boolean removeFirstOccurrence(Object o)
E removeLast()
boolean removeLastOccurrence(Object o)
Copyright © 2018. All rights reserved.