Sdílet prostřednictvím


Vector.AddElement(Object) Method

Definition

Adds the specified component to the end of this vector, increasing its size by one.

[Android.Runtime.Register("addElement", "(Ljava/lang/Object;)V", "GetAddElement_Ljava_lang_Object_Handler")]
public virtual void AddElement (Java.Lang.Object? obj);
[<Android.Runtime.Register("addElement", "(Ljava/lang/Object;)V", "GetAddElement_Ljava_lang_Object_Handler")>]
abstract member AddElement : Java.Lang.Object -> unit
override this.AddElement : Java.Lang.Object -> unit

Parameters

obj
Object

the component to be added

Attributes

Remarks

Adds the specified component to the end of this vector, increasing its size by one. The capacity of this vector is increased if its size becomes greater than its capacity.

This method is identical in functionality to the #add(Object) add(E) method (which is part of the List interface).

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