MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / binarySearch

Method binarySearch

vm/JavaAPI/src/java/util/Arrays.java:171–173  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

refreshMethod · 0.95
isProbablePrimeMethod · 0.95
invokeStatic0Method · 0.45
invokeStatic2Method · 0.45

Calls 6

doubleToLongBitsMethod · 0.95
lessThanMethod · 0.95
floatToIntBitsMethod · 0.95
compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected