常用API简易写法

com.google.common.base.Splitter.on(",").trimResults().splitToList(specialCity);

StringUtils.join(driverIdList, ",");

Lists.partition(driverIds, MAX_SIZE);

driverList.stream().map(e -> e.getScore()).collect(Collectors.toList());

(driverList.stream().collect(Collectors.groupingBy
                (RobDriverParamDTO::getRank))).entrySet().stream()
                .sorted(Map.Entry.comparingByKey(Comparator.reverseOrder()))
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,
                        (oldValue, newValue) -> oldValue, LinkedHashMap::new))

发布了177 篇原创文章 · 获赞 14 · 访问量 47万+

猜你喜欢

转载自blog.csdn.net/qian_348840260/article/details/87911700