摘要: public V putIfAbsent(@NotNull K key, @NotNull V value) putIfAbsent方法主要是在向ConcurrentHashMap中添加键—值对的时候,它会先判断该键值对是否已经存在。 如果不存在(新的entry),那么会向map中添加该键值对,并返 阅读全文
posted @ 2018-05-23 19:38 牧之丨 阅读(650) 评论(0) 推荐(0) 编辑