E - the class of the elements of this list.public final class FIFOList<E> extends Vector<E> implements Queue<E>
When a stack is first created, it contains no items.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
capacityIncrement, elementCount, elementDatamodCount| Modifier | Constructor and Description |
|---|---|
|
FIFOList()
Creates an empty FIFOList.
|
protected |
FIFOList(Collection<? extends E> coll)
Constructs a vector
containing the elements of the specified collection,
in the order they are returned by the collection's iterator.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> FIFOList<E> |
create() |
static <E> FIFOList<E> |
create(Collection<? extends E> coll) |
E |
element() |
boolean |
offer(E item)
Constructs a vector.
|
E |
peek() |
E |
poll() |
E |
remove() |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayprivate static final long serialVersionUID
public FIFOList()
protected FIFOList(Collection<? extends E> coll)
coll - the collection whose elements are to be placed into this FIFOList.NullPointerException - if the specified collection is null.public static <E> FIFOList<E> create()
public static <E> FIFOList<E> create(Collection<? extends E> coll)
public boolean offer(E item)
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.