Language

JavaList<T>.IndexOf(T) Method

Definition

Finds the first occurrence of an element in the Java list.

public int IndexOf(T item);
override this.IndexOf : 'T -> int

Parameters

item
T

The element to find.

Returns

The index of the first matching element, or -1 if it is not found.

Implements

Remarks

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