CopyOnWriteArrayList.LastIndexOf Method

Definition

Overloads

LastIndexOf(Object)

[TODO: @inheritDoc]

LastIndexOf(Object, Int32)

Returns the index of the last occurrence of the specified element in this list, searching backwards from index, or returns -1 if the element is not found.

LastIndexOf(Object)

[TODO: @inheritDoc]

[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/Object;)I", "GetLastIndexOf_Ljava_lang_Object_Handler")]
public virtual int LastIndexOf (Java.Lang.Object? o);
[<Android.Runtime.Register("lastIndexOf", "(Ljava/lang/Object;)I", "GetLastIndexOf_Ljava_lang_Object_Handler")>]
abstract member LastIndexOf : Java.Lang.Object -> int
override this.LastIndexOf : Java.Lang.Object -> int

Parameters

o
Object

Returns

Int32

Implements

Attributes

Remarks

Java documentation for java.util.concurrent.CopyOnWriteArrayList.lastIndexOf(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

LastIndexOf(Object, Int32)

Returns the index of the last occurrence of the specified element in this list, 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? e, int index);
[<Android.Runtime.Register("lastIndexOf", "(Ljava/lang/Object;I)I", "GetLastIndexOf_Ljava_lang_Object_IHandler")>]
abstract member LastIndexOf : Java.Lang.Object * int -> int
override this.LastIndexOf : Java.Lang.Object * int -> int

Parameters

e
Object

element to search for

index
Int32

index to start searching backwards from

Returns

Int32

the index of the last occurrence of the element at position less than or equal to index in this list; -1 if the element is not found.

Attributes

Remarks

Java documentation for java.util.concurrent.CopyOnWriteArrayList.lastIndexOf(E, 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.

Applies to