O'Reilly logo

Beginning Java 8 Language Features: Lambda Expressions, Inner Classes, Th reads, I/O, Collections,and Streams by Kishori Sharan

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

CHAPTER 13

image

Streams

In this chapter, you will learn

  • What streams are
  • Differences between collections and streams
  • How to create streams from different types of data sources
  • How to represent an optional value using the Optional class
  • Applying different types of operations on streams
  • Collecting data from streams using collectors
  • Grouping and partitioning a stream’s data
  • Finding and matching data in streams
  • How to work with parallel streams

What Is a Stream?

An aggregate operation computes a single value from a collection of values. The result of an aggregate operation may be simply a primitive value, an object, or a void. Note that an object may ...

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