-
Method Summary
<T> T
<T> boolean
replace(@NotNull Key<T> key,
T oldValue,
T newValue)
Replaces (atomically) old value in the map with the new one
-
Method Details
-
putUserDataIfAbsent
@NotNull
<T> T putUserDataIfAbsent(@NotNull
@NotNull Key<T> key,
@NotNull
T value)
- Returns:
- written or already existing value
-
replace
<T> boolean replace(@NotNull
@NotNull Key<T> key,
@Nullable
T oldValue,
@Nullable
T newValue)
Replaces (atomically) old value in the map with the new one
- Returns:
- true if old value got replaced, false otherwise
- See Also:
-