📅  最后修改于: 2022-03-11 14:56:27.209000             🧑  作者: Mango
代码示例1
List filteredList = listOfOptionals.stream()
.filter(Optional::isPresent)
.map(Optional::get)
.collect(Collectors.toList());