- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 200 for oldValues (0.32 sec)
-
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
K key = entryArray[i].getKey(); V value = entryArray[i].getValue(); V oldValue = delegateMap.put(key, value); if (oldValue != null) { if (throwIfDuplicateKeys) { throw conflictException("key", entryArray[i], entryArray[i].getKey() + "=" + oldValue); } if (duplicates == null) { duplicates = new HashMap<>(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Set<Entry<K, V>> entrySet = map.entrySet(); Entry<K, V> entry = entrySet.iterator().next(); V oldValue = entry.getValue(); V returnedValue = entry.setValue(oldValue); assertEquals(oldValue, returnedValue); assertTrue(entrySet.contains(mapEntry(entry.getKey(), oldValue))); assertEquals(oldValue, map.get(entry.getKey())); assertInvariants(map); } public void testEqualsForEqualMap() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 45.9K bytes - Viewed (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.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 10.7K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
* the thread's interrupt status is set * @since 11.0 */ @GwtIncompatible // Futures public ListenableFuture<V> reload(K key, V oldValue) throws Exception { checkNotNull(key); checkNotNull(oldValue); return Futures.immediateFuture(load(key)); } /** * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 19 20:20:14 UTC 2022 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 29 19:42:21 UTC 2021 - 2.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingConcurrentMap.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 29 19:42:21 UTC 2021 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/ParamMap.java
return parent.remove(toCamelCase(key), value); } @Override public boolean replace(final K key, final V oldValue, final V newValue) { if (parent.replace(key, oldValue, newValue)) { return true; } return parent.replace(key, oldValue, newValue); } @Override public V replace(final K key, final V value) { // use original key
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.3K bytes - Viewed (0) -
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.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 10.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDouble.java
*/ @CanIgnoreReturnValue public final double getAndAccumulate(double x, DoubleBinaryOperator accumulatorFunction) { checkNotNull(accumulatorFunction); return getAndUpdate(oldValue -> accumulatorFunction.applyAsDouble(oldValue, x)); } /** * Atomically updates the current value with the results of applying the given function to the * current and given values. * * @param x the update value
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 9.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/TableCollectors.java
@ParametricNullness C column, V value, BinaryOperator<V> mergeFunction) { checkNotNull(value); V oldValue = table.get(row, column); if (oldValue == null) { table.put(row, column, value); } else { V newValue = mergeFunction.apply(oldValue, value); if (newValue == null) { table.remove(row, column); } else { table.put(row, column, newValue);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Mar 09 00:21:17 UTC 2024 - 7.3K bytes - Viewed (0)