ArrayList Constructors

Definition

Overloads

ArrayList()

Constructs an empty list with an initial capacity of ten.

ArrayList(ICollection)

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

ArrayList(Int32)

Constructs an empty list with the specified initial capacity.

ArrayList(IntPtr, JniHandleOwnership)

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

ArrayList()

Constructs an empty list with an initial capacity of ten.

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

Remarks

Constructs an empty list with an initial capacity of ten.

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

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

ArrayList(ICollection)

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

Parameters

c
ICollection

the collection whose elements are to be placed into this list

Attributes

Remarks

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

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

ArrayList(Int32)

Constructs an empty list with the specified initial capacity.

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

Parameters

initialCapacity
Int32

the initial capacity of the list

Attributes

Remarks

Constructs an empty list with the specified initial capacity.

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

ArrayList(IntPtr, JniHandleOwnership)

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

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

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