|
Scala 2
|
class
PriorityQueue
[ A ]
extends
java.lang.Object with
ResizableArray with
ScalaObjectOrdered[T]
class.Constructor Summary | |
def
this
( ) ( view$0 : Function1 )
|
Def Summary | |
def
++=
( it : Iterator )
: scala.Unit
Adds all elements provided by an iterator into the priority queue. |
|
def
++=
( iter : Iterable )
: scala.Unit
Adds all elements provided by an Iterable object
into the priority queue.
|
|
def
+=
( elem : A )
: scala.Unit
Inserts a single element into the priority queue. |
|
def
clear
: scala.Unit
Removes all elements from the queue. After this operation is completed, the queue will be empty. |
|
override
|
def
clone
: PriorityQueue
This method clones the priority queue. |
def
dequeue
: A
Returns the element with the highest priority in the queue, and removes this element from the queue. |
|
override
|
def
elements
: Iterator
Returns an iterator which yiels all the elements of the priority queue in descending priority order. |
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. |
protected
|
def
fixDown
( as : Array , m : scala.Int , n : scala.Int )
: scala.Unit
|
protected
|
def
fixUp
( as : Array , m : scala.Int )
: scala.Unit
|
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. |
def
isEmpty
: scala.Boolean
Checks if the queue is empty. |
|
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. |
|
def
toList
: List
Returns a list of all elements. |
|
def
toQueue
: Queue
Returns a regular queue containing the same elements. |
|
override
|
def
toString
: java.lang.String
Returns a textual representation of a queue as a string. |
Constructor Detail |
def
this
( ) ( view$0 : Function1 )
Def Detail |
def
++=
( it : Iterator ) : scala.Unit
def
++=
( iter : Iterable ) : scala.Unit
Iterable
object
into the priority queue.def
+=
( elem : A ) : scala.Unit
def
clear
: scala.Unit
def
clone
: PriorityQueue
def
dequeue
: A
def
elements
: Iterator
def
enqueue
( elems : scala.<repeated> ) : scala.Unit
def
equals
( that : scala.Any ) : scala.Boolean
def
fixDown
( as : Array , m : scala.Int , n : scala.Int ) : scala.Unit
def
fixUp
( as : Array , m : scala.Int ) : scala.Unit
def
hashCode
: scala.Int
def
isEmpty
: scala.Boolean
def
max
: A
def
toList
: List
def
toQueue
: Queue
def
toString
: java.lang.String