stream取得List中不重复的项目的List<String>

List<String> itemList = list.stream().collect(Collectors.groupingBy(Bean::getItem)).keySet().stream().map(key -> key).collect(Collectors.toList());

原文地址:https://www.cnblogs.com/wzhw2015/p/12381628.html