字符串集合去重
1 | List<String> distinctElements = list.stream().distinct().collect(Collectors.toList()); |
根据对象属性去重
1 | public static <T> Predicate<T> distinctByKey(Function<? super T, Object> keyExtractor) |
字符串集合去重
1 | List<String> distinctElements = list.stream().distinct().collect(Collectors.toList()); |
根据对象属性去重
1 | public static <T> Predicate<T> distinctByKey(Function<? super T, Object> keyExtractor) |
微信支付
支付宝