in scala.collection.mutable
class SynchronizedQueue

class SynchronizedQueue [ A ]
extends Queue
with ScalaObject
This is a synchronized version of the Queue[T] class. It implements a data structure that allows one to insert and retrieve elements in a first-in-first-out (FIFO) manner.
author:
Matthias Zenger
version:
1.0, 03/05/2004

Constructor Summary
def this



Def Summary
override def ++= ( it : Iterator ) : 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 : Iterable ) : 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 clear : scala.Unit
Removes all elements from the queue. After this operation is completed, the queue will be empty.
override def dequeue : A
Returns the first element in the queue, and removes this element from the queue.
override def enqueue ( elems : scala.<repeated> ) : scala.Unit
Adds all elements to the queue.
override def equals ( that : scala.Any ) : scala.Boolean
Checks if two queues are structurally identical.
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 hashCode : scala.Int
The hashCode method always yields an error, since it is not safe to use mutable queues as keys in hash tables.
override def isEmpty : scala.Boolean
Checks if the queue is empty.
override def toString : java.lang.String
Returns a textual representation of a queue as a string.


Constructor Detail
def this

Def Detail
override def ++= ( it : Iterator ) : 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.
param:
it an iterator

override def ++= ( iter : Iterable ) : 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.
param:
iter an iterable object

override def += ( elem : A ) : scala.Unit
Inserts a single element at the end of the queue.
param:
elem the element to insert

override def clear : scala.Unit
Removes all elements from the queue. After this operation is completed, the queue will be empty.

override def dequeue : A
Returns the first element in the queue, and removes this element from the queue.
return:
the first element of the queue.

override def enqueue ( elems : scala.<repeated> ) : scala.Unit
Adds all elements to the queue.
param:
elems the elements to add.

override def equals ( that : scala.Any ) : scala.Boolean
Checks if two queues are structurally identical.
return:
true, iff both queues contain the same sequence of elements.

override def front : A
Returns the first element in the queue, or throws an error if there is no element contained in the queue.
return:
the first element.

override def hashCode : scala.Int
The hashCode method always yields an error, since it is not safe to use mutable queues as keys in hash tables.
return:
never.

override def isEmpty : scala.Boolean
Checks if the queue is empty.
return:
true, iff there is no element in the queue.

override def toString : java.lang.String
Returns a textual representation of a queue as a string.
return:
the string representation of this queue.