Decrements by one the value currently associated with key, and returns the old value.
(K key)
| 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 |