- 博客(1)
- 收藏
- 关注
翻译 computeIfAbsent and putIfAbsent
发现了这两个有趣的map内置方法,发现还是有很多不同的1. garbage usage:putIfAbsent 运行情况就像是:V v = map.get(key); if (v == null) v = map.put(key, value); return v;computeIfAbsent 运行就像是:if (map.get(key) == null)...
2019-10-18 03:37:52
1953
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人