Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
static SortedLists.KeyPresentBehavior |
SortedLists.KeyPresentBehavior.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortedLists.KeyPresentBehavior[] |
SortedLists.KeyPresentBehavior.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
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 extends java.lang.Comparable> |
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,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.
|
static <E,K extends java.lang.Comparable> |
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.
|