- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getAndUpdate (0.04 sec)
-
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
return getAndUpdate(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); } /** * Associates {@code newValue} with {@code key} in this map, and returns the value previously * associated with {@code key}, or zero if there was no such value. */ @CanIgnoreReturnValue public long put(K key, long newValue) { return getAndUpdate(key, x -> newValue); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 11.7K bytes - Viewed (0)