O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stream Operations and Pipelines

In the latest Java releases (8 and 9), the collections API has gotten a major facelift with the introduction of streams and internal iteration by leveraging lambda expressions. This chapter shows you how to leverage streams and chain multiple operations on a collection to create a pipeline. Also, we would like to show you how these operations can be done in parallel. We will cover the following recipes:

  • Using the new factory methods to create collection objects
  • Creating and operating on streams
  • Creating an operation pipeline on streams
  • Parallel computations on streams

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required