August 2014
Intermediate to advanced
424 pages
13h 50m
English
This appendix reviews the main additions to the Java library.
The biggest update to the Collections API is the introduction of streams, which we discussed in chapters 4–6. There are also other updates, which we briefly review in this appendix.
The Java API designers made the most out of default methods and added several new methods to collection interfaces and classes. The new methods are listed in table B.1.
|
Class/interface |
New methods |
|---|---|
| Map | getOrDefault, forEach, compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove(key, value), replace, replaceAll |
| Iterable ... |