Android Utililty Methods Array Index Of

List of utility methods to do Array Index Of

Description

The list of methods to do Array Index Of are organized into topic(s).

Method

intindexOf(Object[] array, Object obj)
index Of
intindexOf(Object[] array, Object objectToFind)

Finds the index of the given object in the array.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

intindexOf(Object[] array, Object objectToFind, int startIndex)

Finds the index of the given object in the array starting at the given index.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

A negative startIndex is treated as zero.

intindexOf(T e, T[] array)
index Of
intindexOf(boolean[] array, boolean valueToFind)

Finds the index of the given value in the array.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

intindexOf(boolean[] array, boolean valueToFind, int startIndex)

Finds the index of the given value in the array starting at the given index.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

A negative startIndex is treated as zero.

intindexOf(byte[] array, byte valueToFind)

Finds the index of the given value in the array.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

intindexOf(byte[] array, byte valueToFind, int startIndex)

Finds the index of the given value in the array starting at the given index.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

A negative startIndex is treated as zero.

intindexOf(char[] array, char valueToFind)

Finds the index of the given value in the array.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

intindexOf(char[] array, char valueToFind, int startIndex)

Finds the index of the given value in the array starting at the given index.

This method returns #INDEX_NOT_FOUND (-1) for a null input array.

A negative startIndex is treated as zero.