E - the type of elements held in this collection@Beta public final class EmptyDeque<E> extends AbstractQueue<E> implements Deque<E>, Immutable
Deque. This implementation will always refuse new
elements in its offer(Object) method.| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(E e) |
void |
addLast(E e) |
Iterator<E> |
descendingIterator() |
E |
getFirst() |
E |
getLast() |
static <T> EmptyDeque<T> |
instance() |
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 |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
int |
size() |
Spliterator<E> |
spliterator() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic static <T> EmptyDeque<T> instance()
public boolean offer(E e)
public boolean offerFirst(E e)
offerFirst in interface Deque<E>public E poll()
public E peek()
public Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>public int size()
size in interface Collection<E>size in interface Deque<E>size in class AbstractCollection<E>public Object[] toArray()
toArray in interface Collection<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in class AbstractCollection<E>public E removeFirst()
removeFirst in interface Deque<E>public E removeLast()
removeLast in interface Deque<E>public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence in interface Deque<E>public boolean removeLastOccurrence(Object o)
removeLastOccurrence in interface Deque<E>public Iterator<E> descendingIterator()
descendingIterator in interface Deque<E>Copyright © 2019 OpenDaylight. All rights reserved.