Uses of Class
com.google.mu.collect.BinarySearch.Table
-
Uses of BinarySearch.Table in com.google.mu.collect
Modifier and TypeMethodDescriptionfinal <Q> BinarySearch.Table
<Q, C> Returns a newBinarySearch.Table
over the same source but transforms the search target using the givenkeyFunction
first.BinarySearch.forDoubles()
Returns aBinarySearch.Table
over all finite double values (exceptDouble.NaN
,Double.NEGATIVE_INFINITY
andDouble.POSITIVE_INFINITY
).BinarySearch.forDoubles
(com.google.common.collect.Range<Double> range) Similar toBinarySearch.forInts(Range)
, but returns aBinarySearch.Table
over the givenrange
ofdouble
precision numbers.BinarySearch.forInts()
Returns aBinarySearch.Table
over all integers.Returns aBinarySearch.Table
over the givenrange
.BinarySearch.forLongs()
Similar toBinarySearch.forInts(Range)
, but returns aBinarySearch.Table
over the givenrange
oflong
integers.static BinarySearch.Table
<Integer, Integer> BinarySearch.inSortedArray
(int[] array) Returns aBinarySearch.Table
to search for array element indexes in the given sorted intarray
.static BinarySearch.Table
<Long, Integer> BinarySearch.inSortedArray
(long[] array) Returns aBinarySearch.Table
to search for array element indexes in the given sorted longarray
.static BinarySearch.Table
<Double, Integer> BinarySearch.inSortedArrayWithTolerance
(double[] array, double tolerance) Returns aBinarySearch.Table
to search for array element indexes in the given sorted doublearray
.static <E extends Comparable<E>>
BinarySearch.Table<E, Integer> BinarySearch.inSortedList
(List<? extends E> list) Returns aBinarySearch.Table
to search for element indexes in the given sortedlist
.static <E> BinarySearch.Table
<E, Integer> BinarySearch.inSortedList
(List<? extends E> list, Comparator<? super E> sortedBy) Returns aBinarySearch.Table
to search for element indexes in the given sortedlist
according tocomparator
.static <Q extends Comparable<Q>,
E>
BinarySearch.Table<Q, Integer> BinarySearch.inSortedList
(List<? extends E> list, Function<? super E, ? extends Q> sortedBy) Returns aBinarySearch.Table
to search for element indexes in the givenlist
sorted by thesortBy
function.static BinarySearch.Table
<Double, Integer> BinarySearch.inSortedListWithTolerance
(List<Double> list, double tolerance) Returns aBinarySearch.Table
to search for element indexes in the given list of sorteddouble
values.