List<String> noteIdList = list.stream().map(Note::getId).collect(Collectors.toList());
Set<String> userIdSet = noteMap.values().stream().map(Note::getUser_id).collect(Collectors.toSet());
List<String> noteIdList = list.stream().map(Note::getId).collect(Collectors.toList());
Set<String> userIdSet = noteMap.values().stream().map(Note::getUser_id).collect(Collectors.toSet());
本文标题:Java 8 lamda 表达式
本文链接:https://www.haomeiwen.com/subject/ymlkjftx.html
网友评论