随笔分类 -  关键字

摘要:.stream().distinct().collect(Collectors.toList()) 阅读全文
posted @ 2020-11-25 11:18 Ztc01 阅读(66) 评论(0) 推荐(0)
摘要:default V getOrDefault(Object key, V defaultValue) { V v; return (((v = get(key)) != null) || containsKey(key)) ? v : defaultValue; } 这是源码,意思就是当Map集合中 阅读全文
posted @ 2020-11-04 14:21 Ztc01 阅读(162) 评论(0) 推荐(0)