Android Utililty Methods Array Contains

List of utility methods to do Array Contains

Description

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

Method

booleancontains(int[] array, int valueToFind)

Checks if the value is in the given array.

The method returns false if a null array is passed in.

return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
booleancontains(long[] array, long valueToFind)

Checks if the value is in the given array.

The method returns false if a null array is passed in.

return indexOf(array, valueToFind) != INDEX_NOT_FOUND;
booleancontains(short[] array, short valueToFind)

Checks if the value is in the given array.

The method returns false if a null array is passed in.

return indexOf(array, valueToFind) != INDEX_NOT_FOUND;