Appendix B. Miscellaneous library updates
This appendix reviews the main additions to the Java library.
B.1.1. Additional methods
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.
Table B.1. New methods added to collection classes and interfaces
|Map||getOrDefault, forEach, compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove(key, value), replace, replaceAll|