Share via


ArrayDeque Constructors

Definition

Overloads

ArrayDeque()

Constructs an empty array deque with an initial capacity sufficient to hold 16 elements.

ArrayDeque(ICollection)

Constructs a deque containing the elements of the specified collection, in the order they are returned by the collection's iterator.

ArrayDeque(Int32)

Constructs an empty array deque with an initial capacity sufficient to hold the specified number of elements.

ArrayDeque(IntPtr, JniHandleOwnership)

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

ArrayDeque()

Constructs an empty array deque with an initial capacity sufficient to hold 16 elements.

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

Remarks

Constructs an empty array deque with an initial capacity sufficient to hold 16 elements.

Java documentation for java.util.ArrayDeque.ArrayDeque().

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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

ArrayDeque(ICollection)

Constructs a deque containing the elements of the specified collection, in the order they are returned by the collection's iterator.

[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")]
public ArrayDeque(System.Collections.ICollection c);

Parameters

c
ICollection

the collection whose elements are to be placed into the deque

Attributes

Remarks

Constructs a deque containing the elements of the specified collection, in the order they are returned by the collection's iterator. (The first element returned by the collection's iterator becomes the first element, or front of the deque.)

Java documentation for java.util.ArrayDeque.ArrayDeque(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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

ArrayDeque(Int32)

Constructs an empty array deque with an initial capacity sufficient to hold the specified number of elements.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public ArrayDeque(int numElements);

Parameters

numElements
Int32

lower bound on initial capacity of the deque

Attributes

Remarks

Constructs an empty array deque with an initial capacity sufficient to hold the specified number of elements.

Java documentation for java.util.ArrayDeque.ArrayDeque(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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36

ArrayDeque(IntPtr, JniHandleOwnership)

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

protected ArrayDeque(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);

Parameters

javaReference
IntPtr

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

.NET for Android .NET for Android API 36 and other versions
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36