if (containsKey(key)) { int v = (int) (lget() + additionValue); lset(v); return v; } else { put(key, additionValue); return additionValue; }@param key The key of the value to adjust. @param additionValue The value to put or add to the existing value if
key
exists.
@return Returns the current value associated with key
(after changes).
|
|