Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BinarySearch (0.21 sec)

  1. android/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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  2. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  3. 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>(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top