|
Scala
1.2.0.1 |
|||
Ordered[T]
trait.
Method Summary | |
override
|
def ++=(iter: Iterable[A]): Unit
Adds all elements provided by an Iterable object
into the priority queue.
|
override
|
def ++=(it: Iterator[A]): Unit
Adds all elements provided by an iterator 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. |
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(): String
Returns a textual representation of a queue as a string. |
Methods inherited from java/lang/Object-class |
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/collection/mutable/PriorityQueue-class |
clone, fixDown, fixUp, toList, toQueue |
Methods inherited from scala/collection/mutable/ResizableArray-class |
array, copy, ensureSize, initialSize, length, size, swap |
Method Detail |
override def isEmpty: Boolean
override def +=(elem: A): Unit
elem
-
the element to insert
override def ++=(iter: Iterable[A]): Unit
Iterable
object
into the priority queue.
iter
-
an iterable object
override def ++=(it: Iterator[A]): Unit
it
-
an iterator
override def enqueue(elems: A*): Unit
elems
-
the elements to add.
override def dequeue: A
override def max: A
override def clear: Unit
override def elements: Iterator[A]
override def equals(that: Any): Boolean
override def hashCode(): Int
override def toString(): String
|
Scala
1.2.0.1 |
|||