다음을 통해 공유


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

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);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")>]
new Java.Util.ArrayDeque : System.Collections.ICollection -> Java.Util.ArrayDeque

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

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);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.ArrayDeque : int -> Java.Util.ArrayDeque

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

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);
new Java.Util.ArrayDeque : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.ArrayDeque

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