Compartilhar via


Vector.FirstElement Method

Definition

Returns the first component (the item at index 0) of this vector.

[Android.Runtime.Register("firstElement", "()Ljava/lang/Object;", "GetFirstElementHandler")]
public virtual Java.Lang.Object? FirstElement ();
[<Android.Runtime.Register("firstElement", "()Ljava/lang/Object;", "GetFirstElementHandler")>]
abstract member FirstElement : unit -> Java.Lang.Object
override this.FirstElement : unit -> Java.Lang.Object

Returns

the first component of this vector

Attributes

Exceptions

if this vector is empty.

Remarks

Returns the first component (the item at index 0) of this vector.

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

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