PriorityBlockingQueue Constructors

Definition

Overloads

PriorityBlockingQueue()

Creates a PriorityBlockingQueue with the default initial capacity (11) that orders its elements according to their Comparable natural ordering.

PriorityBlockingQueue(ICollection)

Creates a PriorityBlockingQueue containing the elements in the specified collection.

PriorityBlockingQueue(Int32)

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to their Comparable natural ordering.

PriorityBlockingQueue(Int32, IComparator)

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to the specified comparator.

PriorityBlockingQueue(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PriorityBlockingQueue()

Creates a PriorityBlockingQueue with the default initial capacity (11) that orders its elements according to their Comparable natural ordering.

[Android.Runtime.Register(".ctor", "()V", "")]
public PriorityBlockingQueue ();
Attributes

Remarks

Creates a PriorityBlockingQueue with the default initial capacity (11) that orders its elements according to their Comparable natural ordering.

Java documentation for java.util.concurrent.PriorityBlockingQueue.PriorityBlockingQueue().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PriorityBlockingQueue(ICollection)

Creates a PriorityBlockingQueue containing the elements in the specified collection.

[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")]
public PriorityBlockingQueue (System.Collections.ICollection? c);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")>]
new Java.Util.Concurrent.PriorityBlockingQueue : System.Collections.ICollection -> Java.Util.Concurrent.PriorityBlockingQueue

Parameters

c
ICollection

the collection whose elements are to be placed into this priority queue

Attributes

Remarks

Creates a PriorityBlockingQueue containing the elements in the specified collection. If the specified collection is a SortedSet or a PriorityBlockingQueue, this priority queue will be ordered according to the same ordering. Otherwise, this priority queue will be ordered according to the Comparable natural ordering of its elements.

Java documentation for java.util.concurrent.PriorityBlockingQueue.PriorityBlockingQueue(java.util.Collection<? extends E>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PriorityBlockingQueue(Int32)

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to their Comparable natural ordering.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public PriorityBlockingQueue (int initialCapacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.PriorityBlockingQueue : int -> Java.Util.Concurrent.PriorityBlockingQueue

Parameters

initialCapacity
Int32

the initial capacity for this priority queue

Attributes

Exceptions

if initialCapacity is less than 1

Remarks

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to their Comparable natural ordering.

Java documentation for java.util.concurrent.PriorityBlockingQueue.PriorityBlockingQueue(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PriorityBlockingQueue(Int32, IComparator)

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to the specified comparator.

[Android.Runtime.Register(".ctor", "(ILjava/util/Comparator;)V", "")]
public PriorityBlockingQueue (int initialCapacity, Java.Util.IComparator? comparator);
[<Android.Runtime.Register(".ctor", "(ILjava/util/Comparator;)V", "")>]
new Java.Util.Concurrent.PriorityBlockingQueue : int * Java.Util.IComparator -> Java.Util.Concurrent.PriorityBlockingQueue

Parameters

initialCapacity
Int32

the initial capacity for this priority queue

comparator
IComparator

the comparator that will be used to order this priority queue. If null, the Comparable natural ordering of the elements will be used.

Attributes

Remarks

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to the specified comparator.

Java documentation for java.util.concurrent.PriorityBlockingQueue.PriorityBlockingQueue(int, java.util.Comparator<? super E>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PriorityBlockingQueue(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PriorityBlockingQueue (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.PriorityBlockingQueue : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.PriorityBlockingQueue

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to