public class ArrayDeque<E> extends AbstractCollection<E> implements Deque<E>
| Constructor and Description |
|---|
ArrayDeque() |
ArrayDeque(Collection<? extends E> c) |
ArrayDeque(int minSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
boolean |
contains(Object obj) |
Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
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() |
boolean |
remove(Object obj) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object obj) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object obj) |
int |
size() |
addAll, containsAll, removeAll, retainAll, toArray, toArray, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, removeIf, retainAll, toArray, toArraypublic ArrayDeque()
public ArrayDeque(int minSize)
public ArrayDeque(Collection<? extends E> c)
public boolean offerFirst(E e)
offerFirst in interface Deque<E>public boolean add(E e)
add in interface Collection<E>add in class AbstractCollection<E>public E removeFirst()
removeFirst in interface Deque<E>public E removeLast()
removeLast in interface Deque<E>public boolean removeFirstOccurrence(Object obj)
removeFirstOccurrence in interface Deque<E>public boolean remove(Object obj)
remove in interface Collection<E>remove in class AbstractCollection<E>public boolean removeLastOccurrence(Object obj)
removeLastOccurrence in interface Deque<E>public int size()
size in interface Collection<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in class AbstractCollection<E>public boolean contains(Object obj)
contains in interface Collection<E>contains in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in class AbstractCollection<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in class AbstractCollection<E>public Iterator<E> descendingIterator()
descendingIterator in interface Deque<E>Copyright © 2026. All rights reserved.