Udostępnij za pośrednictwem


Vector Constructors

Definition

Overloads

Vector()

Constructs an empty vector so that its internal data array has size 10 and its standard capacity increment is zero.

Vector(ICollection)

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

Vector(Int32)

Constructs an empty vector with the specified initial capacity and with its capacity increment equal to zero.

Vector(Int32, Int32)

Constructs an empty vector with the specified initial capacity and capacity increment.

Vector(IntPtr, JniHandleOwnership)

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

Vector()

Constructs an empty vector so that its internal data array has size 10 and its standard capacity increment is zero.

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

Remarks

Constructs an empty vector so that its internal data array has size 10 and its standard capacity increment is zero.

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

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

Vector(ICollection)

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

Parameters

c
ICollection

the collection whose elements are to be placed into this vector

Attributes

Remarks

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

Added in 1.2.

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

Vector(Int32)

Constructs an empty vector with the specified initial capacity and with its capacity increment equal to zero.

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

Parameters

initialCapacity
Int32

the initial capacity of the vector

Attributes

Exceptions

if capacity is negative.

Remarks

Constructs an empty vector with the specified initial capacity and with its capacity increment equal to zero.

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

Vector(Int32, Int32)

Constructs an empty vector with the specified initial capacity and capacity increment.

[Android.Runtime.Register(".ctor", "(II)V", "")]
public Vector (int initialCapacity, int capacityIncrement);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Java.Util.Vector : int * int -> Java.Util.Vector

Parameters

initialCapacity
Int32

the initial capacity of the vector

capacityIncrement
Int32

the amount by which the capacity is increased when the vector overflows

Attributes

Exceptions

if capacity is negative.

Remarks

Constructs an empty vector with the specified initial capacity and capacity increment.

Java documentation for java.util.Vector.Vector(int, 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

Vector(IntPtr, JniHandleOwnership)

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

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

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