Performs a binary search for the specified element in the specified ascending sorted array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element. @param array the sorted byte array
(byte[] array, byte value)
| 169 | * is {@code -index - 1} where the element would be inserted. |
| 170 | */ |
| 171 | public static int binarySearch(byte[] array, byte value) { |
| 172 | return binarySearch(array, 0, array.length, value); |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Performs a binary search for the specified element in the specified |
no test coverage detected