Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Working with Java Streams

Header Image

  1. Creating streams
    • This article covers the creation of Java Streams from collections, arrays, files, and I/O channels, providing code examples and explanations of their benefits.
  2. Filtering streams
    • The article “Filtering Streams: A Pirate’s Guide” covers how to filter stream elements based on specific criteria using the filter() method and a Predicate, including the ability to apply multiple filters on a single stream.
  3. Mapping streams
    • This article covers the topic of mapping streams in Java, including how to map stream elements to new values and how to use flat mapping to transform nested collections.
  4. Reducing streams
    • This article covers the use of reduction and aggregate operations on streams in Java, providing code examples and explanations of their purpose and functionality.
  5. Collecting streams
    • This article covers the topic of collecting stream elements into collections, including creating collections of stream elements, collecting stream elements into lists, sets, and maps, and creating custom collectors for more customized behavior.
  6. Parallel streams
    • This article explains the benefits and usage of parallel streams in Java, describing how they allow for concurrent processing of stream operations on multi-core processors to improve performance.

Table of contents