E - the type of elements held in this collection@Beta public final class EmptyQueue<E> extends AbstractQueue<E>
Queue. This implementation will always refuse new
elements in its offer(Object) method.| Modifier and Type | Method and Description |
|---|---|
static <T> Queue<T> |
getInstance() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic static <T> Queue<T> getInstance()
public boolean offer(E e)
public E poll()
public E peek()
public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in class AbstractCollection<E>public int size()
size in interface Collection<E>size in class AbstractCollection<E>Copyright © 2016 OpenDaylight. All rights reserved.