A Queue is a collection that can be manipulated at both ends. One can iterate over the elements of a queue through forEach or with an Iterator.
It is generally not allowed to modify the queue (add or remove entries) while
an operation on the queue is being performed, for example during a call to
forEach.
Modifying the queue while it is being iterated will most likely break the
iteration.
This goes both for using the iterator directly, or for iterating an
Iterable
returned by a method like map or where.
true
if there are no elements in this collection. [...]
Iterator
that allows iterating the elements of this
Iterable
. [...]
value
at the end of the queue.
iterable
at the end of the queue. The
length of the queue is extended by the length of iterable
.
value
at the beginning of the queue.
value
at the end of the queue.
R
instances, if necessary. [...]
value
from the queue. [...]
test
from the queue. [...]
test
from the queue. [...]
test
. [...]
element
. [...]
index
th element. [...]
test
. [...]
test
. [...]
other
. [...]
f
to each element of this collection in iteration
order.
test
. [...]
f
on each element of this Iterable
in iteration order. [...]
test
. [...]
count
elements. [...]
Iterable
that skips leading elements while test
is satisfied. [...]
count
first elements of this iterable. [...]
test
. [...]
test
. [...]
T
. [...]