MCPcopy Index your code
hub / github.com/antlr/codebuff / binarySearch

Method binarySearch

output/java_guava/1.4.17/Ordering.java:972–974  ·  view source on GitHub ↗

Collections#binarySearch(List, Object, Comparator) Searches sortedList for key using the binary search algorithm. The list must be sorted using this ordering. @param sortedList the list to be searched @param key the key to be searched for

(List<? extends T> sortedList, @Nullable T key)

Source from the content-addressed store, hash-verified

970
971
972 public int binarySearch(List<? extends T> sortedList, @Nullable T key) {
973 return Collections.binarySearch(sortedList, key, this);
974 }
975
976 /**
977 * Exception thrown by a {@link Ordering#explicit(List)} or {@link

Callers 15

toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
toComponentPositionMethod · 0.45
unsafeBinarySearchMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected