List<String> itemList = itemMap.entrySet().stream()
.collect(Collectors.groupingBy(e -> e.getKey().substring(11)))
.keySet()
.stream()
.map(key -> key)
.collect(Collectors.toList());
注意e.getKey().substring(11)是取出组合key的一部分项目的值
stream取得Map中不重复项目的List<String>
原文:https://www.cnblogs.com/wzhw2015/p/12381742.html