[go: up one dir, main page]

Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Reactive Programming With Java 8
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Reactive Programming With Java 8

Learning Reactive Programming With Java 8

By : Nickolay Tzvetinov
3.6 (5)
close
close
Learning Reactive Programming With Java 8

Learning Reactive Programming With Java 8

3.6 (5)
By: Nickolay Tzvetinov

Overview of this book

If you are a Java developer that knows how to write software and would like to learn how to apply your existing skills to reactive programming, this book is for you.
Table of Contents (10 chapters)
close
close
9
Index

Chapter 5. Combinators, Conditionals, and Error Handling

Most of the programs that we write handle data from different sources. These sources can be both external (files, databases, servers, and many others) and internal (different collections or branches of the same external source). There are many cases in which we'll want to have these sources depend on each other in one way or another. Defining these dependencies is a necessary step in building our programs. The idea of this chapter is to introduce the Observable operators capable of that.

We saw an example of combined Observable instances in the first and second chapters. Our "Reactive Sum" program had one external data source—the user input but it branched it into two internal data sources, depending on the custom format. We saw how we can use the filter() operator instead of procedural if-else constructions. Later, we combined these data flows into one, with the help of a combinator.

We'll learn...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
notes
register here to use this feature" > bookmark Notes and Bookmarks register here to use this feature" > search Search in title register here to use this feature" > playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon