共用方式為


CopyOnWriteArrayList.IndexOf Method

Definition

Overloads

IndexOf(Object)

To be added

IndexOf(Object, Int32)

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

IndexOf(Object)

To be added

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

Parameters

o
Object

Returns

Implements

Attributes

Remarks

To be added

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

IndexOf(Object, Int32)

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

[Android.Runtime.Register("indexOf", "(Ljava/lang/Object;I)I", "GetIndexOf_Ljava_lang_Object_IHandler")]
public virtual int IndexOf (Java.Lang.Object? e, int index);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/Object;I)I", "GetIndexOf_Ljava_lang_Object_IHandler")>]
abstract member IndexOf : Java.Lang.Object * int -> int
override this.IndexOf : Java.Lang.Object * int -> int

Parameters

e
Object

element to search for

index
Int32

index to start searching from

Returns

the index of the first occurrence of the element in this list at position index or later in the list; -1 if the element is not found.

Attributes

Remarks

Returns the index of the first occurrence of the specified element in this list, searching forwards from index, or returns -1 if the element is not found. More formally, returns the lowest index i such that i >= index && Objects.equals(get(i), e), or -1 if there is no such index.

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