Scala Library
|
|
class
SynchronizedPriorityQueue[A](implicit
view$1 : (A) => Ordered[A])
extends
PriorityQueue[A]Ordered[T]
class.Values and Variables inherited from ResizableArray | |
array |
Method Summary | |
override def
|
++=
(it : Iterator[A]) : Unit
Adds all elements provided by an iterator into the priority queue.
|
override def
|
++=
(iter : Iterable[A]) : Unit
Adds all elements provided by an
Iterable object
into the priority queue. |
override def
|
+=
(elem : A) : Unit
Inserts a single element into the priority queue.
|
override def
|
clear
: Unit
Removes all elements from the queue. After this operation is completed,
the queue will be empty.
|
override def
|
dequeue
: A
Returns the element with the highest priority in the queue,
and removes this element from the queue.
|
override def
|
elements
: Iterator[A]
Returns an iterator which yiels all the elements of the priority
queue in descending priority order.
|
override def
|
enqueue
(elems : A*) : Unit
Adds all elements to the queue.
|
override def
|
equals
(that : Any) : Boolean
Checks if two queues are structurally identical.
|
override def
|
hashCode
: 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
: Boolean
Checks if the queue is empty.
|
override def
|
max
: A
Returns the element with the highest priority in the queue,
or throws an error if there is no element contained in the queue.
|
override def
|
toString
: java.lang.String
Returns a textual representation of a queue as a string.
|
Methods inherited from PriorityQueue | |
fixUp, fixDown, +, +=, +, ++, ++, toQueue, clone |
Methods inherited from ResizableArray | |
initialSize, size0, size0_=, length, apply, reduceToSize, copyToArray, copyToBuffer, ensureSize, swap, copy |
Methods inherited from RandomAccessSeq | |
projection, drop, take, slice, reverse, partition, patch, ++, toStream, safeIs |
Methods inherited from Seq | |
lengthCompare, size, concat, last, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, slice, takeWhile, dropWhile, contains, subseq, toArray, toSeq, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
Methods inherited from Collection | |
stringPrefix |
Methods inherited from Iterable | |
foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, sameElements, toList, mkString, mkString, mkString, addString, addString, addString, hasDefiniteSize |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from AnyRef | |
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
override
def
isEmpty : Boolean
elem -
the element to insertIterable
object
into the priority queue.iter -
an iterable objectit -
an iteratorelems -
the elements to add.override
def
dequeue : A
override
def
max : A
override
def
clear : Unit
override
def
hashCode : Int
override
def
toString : java.lang.String
Scala Library
|
|