You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is ConcurrentHashMap.computeIfAbsent() is better than putIfAbsent() ?
In my opinion , there are several advantages
1.if key exists,it is expensive to compute value, this is the most important thing
2. computeIfAbsent() is functional interface,user it will more flexible
if we need it , please assign it to me, i will try my best
The text was updated successfully, but these errors were encountered:
yanrongzhen
changed the title
Use ConcurrentHashMap.computeIfAbsent() replace putIfAbsent() ?
[Enhancement] Use ConcurrentHashMap.computeIfAbsent() replace putIfAbsent().
Aug 31, 2023
Is ConcurrentHashMap.computeIfAbsent() is better than putIfAbsent() ?
In my opinion , there are several advantages
if we need it , please assign it to me, i will try my best
The text was updated successfully, but these errors were encountered: