2021年4月25日

Java并发编程

摘要: 使用ExecutorService+Callable ExecutorService executor = Executors.newFixedThreadPool(4); executor.invokeAll(xxxList.stream().map(Task:new).collect(Colle 阅读全文

posted @ 2021-04-25 16:39 碎羽love星谊 阅读(23) 评论(0) 推荐(0)

Java中的Stream和Iterable

摘要: Stream stream() xxxList.stream() map() xxx.map(yyy::zzz) xxx.map(yyy::new) collect() xxx.collect(Collectors.toList()); Iterable forEach xxx.forEach(yy 阅读全文

posted @ 2021-04-25 16:28 碎羽love星谊 阅读(201) 评论(0) 推荐(0)

导航