天天看點

擷取List集合對象中某一列屬性值

例:擷取disposeList集合中CorpusMarkPage對象中的responseId屬性,生成新的List集合

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