ArrayList ArrayList Constructors

Definition

Overloads

ArrayList()

Constructs a new ArrayList instance with zero initial capacity.

ArrayList(ICollection) ArrayList(ICollection)
ArrayList(Int32) ArrayList(Int32)

Constructs a new instance of ArrayList with the specified initial capacity.

ArrayList(IntPtr, JniHandleOwnership) ArrayList(IntPtr, JniHandleOwnership)

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

ArrayList()

Constructs a new ArrayList instance with zero initial capacity.

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

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.

ArrayList(ICollection) ArrayList(ICollection)

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

Parameters

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.

ArrayList(Int32) ArrayList(Int32)

Constructs a new instance of ArrayList with the specified initial capacity.

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

Parameters

initialCapacity
Int32 Int32

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.

ArrayList(IntPtr, JniHandleOwnership) 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 IntPtr

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

transfer
JniHandleOwnership 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