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

JAVA学习网 2020-11-10 15:13:01

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

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

阅读(2355) 评论(0)