- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getAndAccumulate (0.15 sec)
-
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
} } } /** getAndAccumulate with sum adds given value to current, and returns previous value */ public void testGetAndAccumulateWithSum() { 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.getAndAccumulate(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/AtomicDouble.java
* * @param delta the value to add * @return the previous value */ @CanIgnoreReturnValue public final double getAndAdd(double delta) { return getAndAccumulate(delta, Double::sum); } /** * Atomically adds the given value to the current value. * * @param delta the value to add * @return the updated value */ @CanIgnoreReturnValue
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 9.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* * @param i the index * @param delta the value to add * @return the previous value */ @CanIgnoreReturnValue public final double getAndAdd(int i, double delta) { return getAndAccumulate(i, delta, Double::sum); } /** * Atomically adds the given value to the element at index {@code i}. * * @param i the index * @param delta the value to add
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.2K 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 old * value. */ @CanIgnoreReturnValue public long getAndAdd(K key, long delta) { return getAndAccumulate(key, delta, Long::sum); } /** * Updates the value currently associated with {@code key} with the specified function, and
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0)