public class TArrayDeque<E> extends TAbstractCollection<E> implements TDeque<E>
Constructor and Description |
---|
TArrayDeque() |
TArrayDeque(int numElements) |
TArrayDeque(TCollection<? extends E> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
protected TArrayDeque<E> |
clone() |
TIterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
TIterator<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(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
int |
size() |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
equals, equals0, finalize, getClass0, hashCode, notify0, notifyAll0, wait0, wait0, waitImpl
addAll, contains, containsAll, remove, removeAll, retainAll, spliterator, stream, toArray, toArray
public TArrayDeque()
public TArrayDeque(int numElements)
public TArrayDeque(TCollection<? extends E> c)
public boolean offerFirst(E e)
offerFirst
in interface TDeque<E>
public E removeFirst()
removeFirst
in interface TDeque<E>
public E removeLast()
removeLast
in interface TDeque<E>
public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface TDeque<E>
public boolean removeLastOccurrence(Object o)
removeLastOccurrence
in interface TDeque<E>
public boolean add(E e)
add
in interface TCollection<E>
add
in class TAbstractCollection<E>
public int size()
size
in interface TCollection<E>
public boolean isEmpty()
isEmpty
in interface TCollection<E>
isEmpty
in class TAbstractCollection<E>
public TIterator<E> descendingIterator()
descendingIterator
in interface TDeque<E>
public void clear()
clear
in interface TCollection<E>
clear
in class TAbstractCollection<E>
protected TArrayDeque<E> clone()
Copyright © 2019. All rights reserved.