- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for accumulateAndGet (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
} } } /** accumulateAndGet with sum adds given value to current, and returns current value */ public void testAccumulateAndGetWithSum() { AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); for (int i : new int[] {0, SIZE - 1}) { for (double x : VALUES) { for (double y : VALUES) { aa.set(i, x); double z = aa.accumulateAndGet(i, y, Double::sum);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
/** * Adds {@code delta} to the value currently associated with {@code key}, and returns the new * value. */ @CanIgnoreReturnValue public long addAndGet(K key, long delta) { return accumulateAndGet(key, delta, Long::sum); } /** * Increments by one the value currently associated with {@code key}, and returns the old value. */ @CanIgnoreReturnValue public long getAndIncrement(K key) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0)