Does anyone know where I can find the actual implementation of binarySearch in java.util.Collections? Specifically the following:
binarySearch(List<? extends T> list, T object, Comparator<? super T> comparator)
Does anyone know where I can find the actual implementation of binarySearch in java.util.Collections? Specifically the following:
binarySearch(List<? extends T> list, T object, Comparator<? super T> comparator)
Each JDK installation comes with a src.zip file containing the public source code. The .java file for java.util.Collections is part of that.
Alternatively, you can see source at grepcode.com by doing a simple search for java.