In this chapter, you will learn:
New convenience methods added to the Stream interface for stream processing
New collectors added to the Collectors class
JDK 9 added few convenience methods to the Streams API. I categorize them based on the type they have been added to:
The Stream interface
The Collectors class
Methods in the Stream interface define new stream operations, whereas methods in the Collectors class define new collectors. The following sections describe them in detail. The source code for this chapter is in a module named com.jdojo.streams, whose declaration is shown in Listing 18-1.