static <E extends java.lang.Comparable> int |
SortedLists.binarySearch(java.util.List<? extends E> list,
E e,
SortedLists.KeyPresentBehavior presentBehavior,
SortedLists.KeyAbsentBehavior absentBehavior) |
Searches the specified naturally ordered list for the specified object using the binary search
algorithm.
|
static <E> int |
SortedLists.binarySearch(java.util.List<? extends E> list,
E key,
java.util.Comparator<? super E> comparator,
SortedLists.KeyPresentBehavior presentBehavior,
SortedLists.KeyAbsentBehavior absentBehavior) |
Searches the specified list for the specified object using the binary search algorithm.
|
static <E,K extends java.lang.Comparable> int |
SortedLists.binarySearch(java.util.List<E> list,
Function<? super E,K> keyFunction,
K key,
SortedLists.KeyPresentBehavior presentBehavior,
SortedLists.KeyAbsentBehavior absentBehavior) |
Binary searches the list for the specified key, using the specified key function.
|
static <E,K> int |
SortedLists.binarySearch(java.util.List<E> list,
Function<? super E,K> keyFunction,
K key,
java.util.Comparator<? super K> keyComparator,
SortedLists.KeyPresentBehavior presentBehavior,
SortedLists.KeyAbsentBehavior absentBehavior) |
Binary searches the list for the specified key, using the specified key function.
|