/** * Finds the first index of an element or <code>-1</code> if not found. */ public static <E extends Enum<E>> int indexOf(E[] array, E element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static <E> int indexOf(E[] array, E element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(char[] array, char element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(byte[] array, byte element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(long[] array, long element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(int[] array, int element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(double[] array, double element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(short[] array, short element) { return indexOf(array, element, 0); }
/** * Finds the first index of an element or <code>-1</code> if not found. */ public static int indexOf(float[] array, float element) { return indexOf(array, element, 0); }