class?DictItem{
????????private?String?dataType;
????????private?String?dataCode;
????????private?String?dataValue;
}如何將List<DictItem>轉化為Map<String,List<String,DictItem>>按照datatype,datacode 分組這種方式得到的是Map<String, Map<String, List<DictItem>>>
????????dictMaps?=?dictItems.stream().collect(Collectors.groupingBy(DictItem::getDataType,?Collectors.groupingBy(DictItem::getDataCode)));
添加回答
舉報
0/150
提交
取消