分组
List<MjConfig> mjConfigs = new ArrayList<>();
// 根据Type类型分组
Map<String, List<MjConfig>> map = mjConfigs.stream().collect(Collectors.groupingBy(MjConfig::getType));
2022-05-31 19:28:43
List<MjConfig> mjConfigs = new ArrayList<>();
// 根据Type类型分组
Map<String, List<MjConfig>> map = mjConfigs.stream().collect(Collectors.groupingBy(MjConfig::getType));
下一篇:线程的暂停