Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for function (0.2 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

          }
        }
      }
    
      @Override
      public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {
        checkNotNull(function);
        Map<K, V> delegate = delegateOrNull();
        if (delegate != null) {
          delegate.replaceAll(function);
        } else {
          for (int i = 0; i < size; i++) {
            setValue(i, function.apply(key(i), value(i)));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashMap.java

     *
     * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and
     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
     * from uniform), and amortized since some operations can trigger a hash table resize.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
Back to top