Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BinarySearch (0.05 sec)

  1. guava/src/com/google/common/base/CharMatcher.java

              checkArgument(rangeEnds[i] < rangeStarts[i + 1]);
            }
          }
        }
    
        @Override
        public boolean matches(char c) {
          int index = Arrays.binarySearch(rangeStarts, c);
          if (index >= 0) {
            return true;
          } else {
            index = ~index - 1;
            return index >= 0 && c <= rangeEnds[index];
          }
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (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>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top