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.

C#
[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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

Vector(ICollection)

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

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

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

Vector(Int32)

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

C#
[Android.Runtime.Register(".ctor", "(I)V", "")]
public Vector (int initialCapacity);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

Vector(Int32, Int32)

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

C#
[Android.Runtime.Register(".ctor", "(II)V", "")]
public Vector (int initialCapacity, int capacityIncrement);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

Vector(IntPtr, JniHandleOwnership)

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

C#
protected Vector (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 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35