Aracılığıyla paylaş


Vector.RemoveElement(Object) Method

Definition

Removes the first (lowest-indexed) occurrence of the argument from this vector.

[Android.Runtime.Register("removeElement", "(Ljava/lang/Object;)Z", "GetRemoveElement_Ljava_lang_Object_Handler")]
public virtual bool RemoveElement (Java.Lang.Object? obj);
[<Android.Runtime.Register("removeElement", "(Ljava/lang/Object;)Z", "GetRemoveElement_Ljava_lang_Object_Handler")>]
abstract member RemoveElement : Java.Lang.Object -> bool
override this.RemoveElement : Java.Lang.Object -> bool

Parameters

obj
Object

the component to be removed

Returns

true if the argument was a component of this vector; false otherwise.

Attributes

Remarks

Removes the first (lowest-indexed) occurrence of the argument from this vector. If the object is found in this vector, each component in the vector with an index greater or equal to the object's index is shifted downward to have an index one smaller than the value it had previously.

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

Java documentation for java.util.Vector.removeElement(java.lang.Object).

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

See also