|
Scala 2.3.3
|
abstract
trait
QueueProxy
[A]
extends
scala.collection.mutable.Queue[A]
with
scala.SeqProxy[A]
with
scala.ScalaObject
Queue
objects implement data structures that allow to
insert and retrieve elements in a first-in-first-out (FIFO) manner.Def Summary | |
override
|
def
++=
(it: scala.Iterator[A])
: scala.Unit
Adds all elements provided by an iterator at the end of the queue. The elements are prepended in the order they are given out by the iterator. |
override
|
def
++=
(iter: scala.Iterable[A])
: scala.Unit
Adds all elements provided by an Iterable object
at the end of the queue. The elements are prepended in the order they
are given out by the iterator.
|
override
|
def
+=
(elem: A)
: scala.Unit
Inserts a single element at the end of the queue. |
override
|
def
apply
(n: scala.Int)
: A
Access element number n .
|
override
|
def
clear
: scala.Unit
Removes all elements from the queue. After this operation is completed, the queue will be empty. |
override
|
def
clone
: scala.collection.mutable.Queue[A]
This method clones the queue. |
override
|
def
dequeue
: A
Returns the first element in the queue, and removes this element from the queue. |
override
|
def
elements
: scala.Iterator[A]
Returns an iterator over all elements on the queue. |
override
|
def
enqueue
(elems: A*)
: scala.Unit
Adds all elements to the queue. |
override
|
def
front
: A
Returns the first element in the queue, or throws an error if there is no element contained in the queue. |
override
|
def
isEmpty
: scala.Boolean
Checks if the queue is empty. |
override
|
def
length
: scala.Int
Returns the length of this queue. |
abstract
|
def
self
: scala.collection.mutable.Queue[A]
|
Def inherited from scala.collection.mutable.Queue[A] | |
++= , ++=, +=, clear, clone, dequeue, dequeueAll, dequeueFirst, enqueue, equals, extractFirst, front, hashCode, isEmpty, toString |
Def inherited from scala.SeqProxy[A] | |
concat , contains, copyToArray, drop, dropWhile, filter, flatMap, isDefinedAt, isEmpty, lastIndexOf, length, map, reverse, self, slice, take, takeWhile, toArray |
Def Detail |
override
def
++=
(it: scala.Iterator[A]): scala.Unit
iter -
an iterator
override
def
++=
(iter: scala.Iterable[A]): scala.Unit
Iterable
object
at the end of the queue. The elements are prepended in the order they
are given out by the iterator.iter -
an iterable object
override
def
+=
(elem: A): scala.Unit
elem -
the element to insert
n
.n
.
override
def
clear
: scala.Unit
override
def
clone
: scala.collection.mutable.Queue[A]
override
def
dequeue
: A
override
def
elements
: scala.Iterator[A]
override
def
enqueue
(elems: A*): scala.Unit
elems -
the elements to add.
override
def
front
: A
override
def
isEmpty
: scala.Boolean
override
def
length
: scala.Int
abstract
def
self
: scala.collection.mutable.Queue[A]