文章目录
一、Collection、List 新增的方法
- 一、Collection、List 新增的方法
- 1.1、removeIf
- 1.2、replaceAll
- 1.3、sort
- 1.4、spliterator
- 二、Map 新增的方法
- 2.1、getOrDefault
- 2.2、forEach
- 2.3、putIfAbsent
- 2.4、compute
- 2.5、computeIfAbsent
- 2.6、computeIfPresent
- 2.7、merge
- 2.8、remove(key, value)
- 2.9、replace、replaceAll
- 三、Collectors 收集方法
- toCollection
- toList、toSet
- toMap
- joining
- mapping/flatMapping
- filtering
- counting
- minBy/maxBy
- summingInt/summingLong/summingDouble
- averagingInt/averagingLong/averagingDouble
- groupingBy
- 多级分组
- groupingByConcurrent
- partitioningBy
- BinaryOperator
- summarizingInt
Collection中新增的方法
- removeIf
- stream
- parallelStream
- spliterator
List中新增的方法
- replaceAll
- sort
default boolean removeIf(Predicate
关注
打赏
热门博文
- Java从入门到架构师_Elasticsearch
- Java从入门到架构师__JavaSE
- MySQL笔记: B站宋红康最新教程 (持续更新中)
- 学习《Java设计模式》目录索引 (持续更新中)
- 学习《网络协议》目录索引 (持续更新中)
- 学习《Java并发编程》目录索引 (持续更新中)
- 学习《Java虚拟机》目录索引 (持续更新中)
- 学习《恋上数据结构与算法》目录索引 (持续更新中)
- Java学习笔记目录索引 (持续更新中)
- RestTemplate (一) : ClientHttpRequestFactory、ResponseErrorHandler、ResponseExtractor、UriComponents