Java.Util.PriorityQueue Class
A PriorityQueue holds elements on a priority heap, which orders the elements according to their natural order or according to the comparator specified at construction time.

See Also: PriorityQueue Members

Syntax

[Android.Runtime.Register("java/util/PriorityQueue", DoNotGenerateAcw=true)]
public class PriorityQueue : AbstractQueue, Java.IO.ISerializable, IDisposable

Remarks

A PriorityQueue holds elements on a priority heap, which orders the elements according to their natural order or according to the comparator specified at construction time. If the queue uses natural ordering, only elements that are comparable are permitted to be inserted into the queue.

The least element of the specified ordering is the first retrieved with PriorityQueue.Poll and the greatest element is the last.

A PriorityQueue is not synchronized. If multiple threads will have to access it concurrently, use the Java.Util.Concurrent.PriorityBlockingQueue.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1