Vector.LastElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.