Vector.LastElement Method

Definition

Returns the last component of the vector.

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

Returns

the last component of the vector, i.e., the component at index size() - 1

Attributes

Exceptions

if this vector is empty.

Remarks

Returns the last component of the vector.

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

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