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

Method getAndIncrement

output/java_guava/1.4.17/AtomicLongMap.java:150–153  ·  view source on GitHub ↗

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

(K key)

Source from the content-addressed store, hash-verified

148 */
149
150 @CanIgnoreReturnValue
151 public long getAndIncrement(K key) {
152 return getAndAdd(key, 1);
153 }
154
155 /**
156 * Decrements by one the value currently associated with {@code key}, and returns the old value.

Callers 4

newThreadMethod · 0.45
applyMethod · 0.45
incrementMethod · 0.45
incrementMethod · 0.45

Calls 1

getAndAddMethod · 0.95

Tested by

no test coverage detected