- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for updateAndGet (0.05 sec)
-
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* @since 31.1 */ @CanIgnoreReturnValue public final double accumulateAndGet(int i, double x, DoubleBinaryOperator accumulatorFunction) { checkNotNull(accumulatorFunction); return updateAndGet(i, oldValue -> accumulatorFunction.applyAsDouble(oldValue, x)); } /** * Atomically updates the element at index {@code i} with the results of applying the given * function to the current value. *
Registered: Fri Dec 26 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
* returns the new value. If there is not currently a value associated with {@code key}, the * function is applied to {@code 0L}. * * @since 21.0 */ @CanIgnoreReturnValue public long updateAndGet(K key, LongUnaryOperator updaterFunction) { checkNotNull(updaterFunction); Long result = map.compute( key, (K k, @Nullable Long value) ->Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
recentAttempts.incrementAndGet(); lastAttempt = now; } void recordSuccess() { // Reduce counter on success to allow recovery recentAttempts.updateAndGet(val -> Math.max(0, val - 1)); } void reset() { recentAttempts.set(0); blocked.set(false); blockExpiry = null; windowStart = Instant.now();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0)