Learning Reactive Programming with Java 8 by Tsvetinov Nickolay

Learning Reactive Programming with Java 8 by Tsvetinov Nickolay

Author:Tsvetinov, Nickolay
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-06-24T04:00:00+00:00


And the output is as follows:

Multiple operators : I'm the one who will become RX. Multiple operators ended!

Note

The preceding example can be found at https://github.com/meddle0x53/learning-rxjava/blob/master/src/main/java/com/packtpub/reactive/chapter04/VariousTransformationsDemonstration.java.

Summary

The example concluding the chapter demonstrates what we've learned so far. We can write complex logic by chaining the Observable instances using a variety of operators. We can transform incoming data using the map() or flatMap() operators and can branch logic by using the groupBy() or filter() operators or the different flatMap() operators. We can join these branches again with the flatMap() operators. We can select parts of the data with the help of different filters and accumulate it with the scan() operator. Using all of these operators, we can write pretty decent programs in a readable and simple way. The complexity of the program doesn't affect the complexity of the code.

The next step is to learn how to combine the branches of our logic in a more straightforward fashion. We'll learn how to combine data coming from different sources too. So let's proceed with the next chapter!



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.