Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for computeIfAbsent (0.09 seconds)

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

        }
    
        @Override
        public @Nullable V replace(K key, V value) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public V computeIfAbsent(
            K key, java.util.function.Function<? super K, ? extends V> mappingFunction) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public @Nullable V computeIfPresent(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/LocalCache.java

        checkNotNull(key);
        checkNotNull(function);
        int hash = hash(key);
        return segmentFor(hash).compute(key, hash, function);
      }
    
      @Override
      public V computeIfAbsent(K key, Function<? super K, ? extends V> function) {
        checkNotNull(key);
        checkNotNull(function);
        return compute(key, (k, oldValue) -> (oldValue == null) ? function.apply(key) : oldValue);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top