Java stream 方法匹配的简写?请看举例
資深大佬 : lxk11153 4
.collect(Collectors.toCollection(LinkedHashSet::new)) // java.util.LinkedHashSet#LinkedHashSet() // java.util.LinkedHashSet#LinkedHashSet(int)
如果想让它走#LinkedHashSet(int),有什么简写方式吗?
大佬有話說 (9)
.collect(Collectors.toCollection(LinkedHashSet::new)) // java.util.LinkedHashSet#LinkedHashSet() // java.util.LinkedHashSet#LinkedHashSet(int)
如果想让它走#LinkedHashSet(int),有什么简写方式吗?