获取List集合对象中某一列属性值

例:获取disposeList集合中CorpusMarkPage对象中的responseId属性,生成新的List集合

List<String> responseIdList = disposeList.stream().map(CorpusMarkPage::getResponseId).collect(Collectors.toList());

posted @ 2020-11-09 22:07  南国以南i  阅读(1290)  评论(0编辑  收藏  举报