PriorityBlockingQueue Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PriorityBlockingQueue() |
Creates a |
PriorityBlockingQueue(ICollection) |
Creates a |
PriorityBlockingQueue(Int32) |
Creates a |
PriorityBlockingQueue(Int32, IComparator) |
Creates a |
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
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.
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.
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
- 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.