/** * @param array an array of {@code byte} values, possibly empty * @param target an array of {@code byte} * @return {@code true} if {@code target} is present anywhere in {@code array} */ public static boolean contains(byte[] array, byte[] target) { return indexOf(array, target) > -1; }
/** * @param array an array of {@code byte} values, possibly empty * @param target a primitive {@code byte} value * @return {@code true} if {@code target} is present as an element anywhere in {@code array}. */ public static boolean contains(byte[] array, byte target) { return indexOf(array, target) > -1; }
/** * @param array an array of {@code byte} values, possibly empty * @param target an array of {@code byte} * @return {@code true} if {@code target} is present anywhere in {@code array} */ public static boolean contains(byte[] array, byte[] target) { return indexOf(array, target) > -1; }
/** * @param array an array of {@code byte} values, possibly empty * @param target a primitive {@code byte} value * @return {@code true} if {@code target} is present as an element anywhere in {@code array}. */ public static boolean contains(byte[] array, byte target) { return indexOf(array, target) > -1; }
/** * @param array an array of {@code byte} values, possibly empty * @param target an array of {@code byte} * @return {@code true} if {@code target} is present anywhere in {@code array} */ public static boolean contains(byte[] array, byte[] target) { return indexOf(array, target) > -1; }
/** * @param array an array of {@code byte} values, possibly empty * @param target a primitive {@code byte} value * @return {@code true} if {@code target} is present as an element anywhere in {@code array}. */ public static boolean contains(byte[] array, byte target) { return indexOf(array, target) > -1; }