MCPcopy Create free account
hub / github.com/antlr/codebuff / getAndDecrement

Method getAndDecrement

output/java_guava/1.4.19/AtomicLongMap.java:159–162  ·  view source on GitHub ↗

Decrements by one the value currently associated with key, and returns the old value.

(K key)

Source from the content-addressed store, hash-verified

157 */
158
159 @CanIgnoreReturnValue
160 public long getAndDecrement(K key) {
161 return getAndAdd(key, -1);
162 }
163
164 /**
165 * Adds {@code delta} to the value currently associated with {@code key}, and returns the old

Callers

nothing calls this directly

Calls 1

getAndAddMethod · 0.95

Tested by

no test coverage detected