O'Reilly logo

Learning Reactive Programming with Java 8 by Nickolay Tsvetinov

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 4. Transforming, Filtering, and Accumulating Your Data

Now that we have the means for creating Observable instances from a wide variety of source data, it's time to build programming logic around these instances. We will present the basic reactive operators that we'll use to achieve step-by-step computations (the reactive way of handling data).

We will begin with transformations, using the famous flatMap() and map() operators, as well as some more less common transforming operators. After that we'll learn how to filter our data, using the filter() operator, skipping elements, receiving only elements at a given position in time. The chapter will also cover accumulating data with the scan operator. Most of these operators will be presented ...

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