- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 34 for oldValue (0.05 seconds)
-
guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} while (true) { int oldValue = existingCounter.get(); if (oldValue != 0) { try { int newValue = Math.addExact(oldValue, occurrences); if (existingCounter.compareAndSet(oldValue, newValue)) { // newValue can't == 0, so no need to check & remove return oldValue; } } catch (ArithmeticException overflow) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} while (true) { int oldValue = existingCounter.get(); if (oldValue != 0) { try { int newValue = Math.addExact(oldValue, occurrences); if (existingCounter.compareAndSet(oldValue, newValue)) { // newValue can't == 0, so no need to check & remove return oldValue; } } catch (ArithmeticException overflow) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(oldValue); assertTrue(segment.replace(key, hash, oldValue, newValue)); assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(newValue); // different value assertFalse(segment.replace(key, hash, oldValue, newValue)); assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(newValue);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 36K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(oldValue); assertTrue(segment.replace(key, hash, oldValue, newValue)); assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(newValue); // different value assertFalse(segment.replace(key, hash, oldValue, newValue)); assertEquals(1, segment.count); assertThat(segment.get(key, hash)).isEqualTo(newValue);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 36K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheLoader.java
* the thread's interrupted status is set * @since 11.0 */ @GwtIncompatible // Futures public ListenableFuture<V> reload(K key, V oldValue) throws Exception { checkNotNull(key); checkNotNull(oldValue); return immediateFuture(load(key)); } /** * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 9.7K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheLoader.java
* the thread's interrupted status is set * @since 11.0 */ @GwtIncompatible // Futures public ListenableFuture<V> reload(K key, V oldValue) throws Exception { checkNotNull(key); checkNotNull(oldValue); return immediateFuture(load(key)); } /** * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 9.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 11 09:47:03 GMT 2025 - 14.1K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/BloomFilterStrategies.java
long mask = 1L << bitIndex; // only cares about low 6 bits of bitIndex long oldValue; long newValue; do { oldValue = data.get(longIndex); newValue = oldValue | mask; if (oldValue == newValue) { return false; } } while (!data.compareAndSet(longIndex, oldValue, newValue)); // We turned the bit on, so increment bitCount.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 10.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(segment.remove(key, hash, newValue)).isFalse(); assertThat(segment.count).isEqualTo(1); assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue); // cleared assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue); oldValueRef.clear(); assertThat(segment.remove(key, hash, oldValue)).isFalse();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(segment.remove(key, hash, newValue)).isFalse(); assertThat(segment.count).isEqualTo(1); assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue); // cleared assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue); oldValueRef.clear(); assertThat(segment.remove(key, hash, oldValue)).isFalse();
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)