public class ArrayDeque<E>
extends java.util.AbstractCollection<E>
implements java.lang.Cloneable, java.util.Deque<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<E> |
delegate |
Constructor and Description |
---|
ArrayDeque() |
ArrayDeque(java.util.Collection<? extends E> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
addFirst(E e) |
void |
addLast(E e) |
java.util.Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
remove() |
E |
removeFirst() |
boolean |
removeFirstOccurrence(java.lang.Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(java.lang.Object o) |
int |
size() |
clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
private final java.util.LinkedList<E> delegate
public ArrayDeque()
public ArrayDeque(java.util.Collection<? extends E> c)
public int size()
public boolean isEmpty()
public E peek()
public E poll()
public boolean add(E e)
public boolean addAll(java.util.Collection<? extends E> c)
public E remove()
public boolean offer(E e)
public E element()
public java.util.Iterator<E> iterator()
public java.util.Iterator<E> descendingIterator()
descendingIterator
in interface java.util.Deque<E>
public boolean removeFirstOccurrence(java.lang.Object o)
removeFirstOccurrence
in interface java.util.Deque<E>
public boolean removeLastOccurrence(java.lang.Object o)
removeLastOccurrence
in interface java.util.Deque<E>