Map<String, Map<Integer, SalePriceLine>> ouLineMap = new HashMap<>(ouCodes.size());
for (int i = 0; i < lineList.size(); i++) {
SalePriceLine line = lineList.get(i);
ouLineMap.computeIfAbsent(line.getOuCode(), key -> new HashMap<>(16)).put(i, line);
}
computeIfAbsent
发布时间 2023-04-06 10:03:32作者: 一棵二叉树