Mixing object-oriented and reactive programming

As you start applying your RxJava knowledge to real-world problems, something that may not immediately be clear is how to mix it with object-oriented programming. Leveraging multiple paradigms such as object-oriented and functional programming is becoming increasingly common. Reactive programming and object-oriented programming, especially in a Java environment, can definitely work together for the greater good.

Obviously, you can emit any type T from an Observable or any of the other reactive types. Emitting objects built off your own classes is one way in which object-oriented and reactive programming work together. We have seen a number of examples in this book. For instance, Java 8's LocalDate ...

Get Learning RxJava - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.