- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for computeIfAbsent (0.07 seconds)
-
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) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
Cache<Object, Object> cache = CacheBuilder.newBuilder().removalListener(removalListener).build(); cache.put("a", "b"); cache.asMap().computeIfAbsent("a", k -> "c"); assertThat(notifications).isEmpty(); } public void testCopyEntry_computing() { CountDownLatch startSignal = new CountDownLatch(1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K bytes - Click Count (0) -
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) -
src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java
* * @param index the index name * @param path path to the configuration file */ public void addConfigFile(final String index, final String path) { configListMap.computeIfAbsent(index, k -> new ArrayList<>()).add(path); } /** * Sets the configuration settings for the search engine. * * @param settings map of configuration key-value pairs */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 138.6K bytes - Click Count (1)