/** * Finds the first occurrence in an array. */ public static int indexOf(byte[] array, byte[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(byte[] array, byte[] sub) {
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(byte[] array, byte[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(char[] array, char[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(boolean[] array, boolean[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(double[] array, double[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Returns <code>true</code> if an array contains given value. */ public static boolean contains(byte[] array, byte value) { return indexOf(array, value) != -1; } /**
/** * Returns <code>true</code> if <code>double</code> array contains given value. */ public static boolean contains(double[] array, double value) { return indexOf(array, value) != -1; } /**
/** * Returns <code>true</code> if an array contains given value. */ public static boolean contains(boolean[] array, boolean value) { return indexOf(array, value) != -1; } /**
/** * Returns <code>true</code> if <code>float</code> array contains given value. */ public static boolean contains(float[] array, float value) { return indexOf(array, value) != -1; } /**
/** * Finds the first occurrence in an array. */ public static int indexOf(boolean[] array, boolean[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(boolean[] array, boolean[] sub) {
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(float[] array, float[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Finds the first occurrence in an array. */ public static int indexOf(double[] array, double[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(double[] array, double[] sub) {
/** * Finds the first occurrence in an array. */ public static int indexOf(char[] array, char[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(char[] array, char[] sub) {
/** * Finds the first occurrence in an array. */ public static int indexOf(short[] array, short[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(short[] array, short[] sub) {
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(short[] array, short[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Finds the first occurrence in an array. */ public static int indexOf(int[] array, int[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(int[] array, int[] sub) {
/** * Finds the first occurrence in an array from specified given position. */ public static int indexOf(long[] array, long[] sub, int startIndex) { return indexOf(array, sub, startIndex, array.length); }
/** * Returns <code>true</code> if an array contains given value. */ public static boolean contains(int[] array, int value) { return indexOf(array, value) != -1; } /**
/** * Returns <code>true</code> if an array contains given value. */ public static boolean contains(long[] array, long value) { return indexOf(array, value) != -1; } /**
/** * Finds the first occurrence in an array. */ public static int indexOf(long[] array, long[] sub) { return indexOf(array, sub, 0, array.length); } public static boolean contains(long[] array, long[] sub) {