Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 22 of 22 for binarySearch (0.36 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

                Arrays.copyOf(sortedElements, IntMath.saturatedAdd(length, length / 2 + 1));
          }
          int[] sortedCounts = new int[sortedElements.length];
          for (int i = 0; i < length; i++) {
            int index = Arrays.binarySearch(sortedElements, 0, uniques, elements[i], comparator);
            if (counts[i] >= 0) {
              sortedCounts[index] += counts[i];
            } else {
              sortedCounts[index] = ~counts[i];
            }
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                }
                // requireNonNull is safe because the first `size` elements have been filled in.
                // We're careful to put only K instances in.
                int index =
                    Arrays.binarySearch((K[]) sortedKeys, (K) requireNonNull(keys[i]), comparator);
                sortedValues[index] = requireNonNull(values[i]);
              }
              return new ImmutableSortedMap<K, V>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 54.7K bytes
    - Click Count (0)
Back to Top