Vector.LastIndexOf(Object, Int32) Method
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 index of the last occurrence of the specified element in
this vector, searching backwards from index
, or returns -1 if
the element is not found.
[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/Object;I)I", "GetLastIndexOf_Ljava_lang_Object_IHandler")]
public virtual int LastIndexOf (Java.Lang.Object? o, int index);
[<Android.Runtime.Register("lastIndexOf", "(Ljava/lang/Object;I)I", "GetLastIndexOf_Ljava_lang_Object_IHandler")>]
override this.LastIndexOf : Java.Lang.Object * int -> int
- o
- Object
element to search for
- index
- Int32
index to start searching backwards from
the index of the last occurrence of the element at position
less than or equal to index
in this vector;
-1 if the element is not found.
- Attributes
if location >= size()
.
Returns the index of the last occurrence of the specified element in this vector, searching backwards from index
, or returns -1 if the element is not found. More formally, returns the highest index i
such that (i <= index && Objects.equals(o, get(i)))
, or -1 if there is no such index.
Java documentation for java.util.Vector.lastIndexOf(java.lang.Object, int)
.
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.
Produkt | Versioner |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
- <xref:Java.Util.Vector.IndexOf(Java.Lang.Object%2c+System.Int32)>