public static boolean contains(byte[] array, byte[] target) {
    return indexOf(array, target) > -1;
  }
Return true if target is present as an element anywhere in the given array.
@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}
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java