Functional types
Here are all the functional types available in RxJava 1., 2., and 3.0 at the time of writing. You may recognize many of these functional types as being almost identical to those in Java 8 (in the java.util.function package) or Google Guava.
However, they were copied to an extent in RxJava to make them available for use in Java 6, 7, and 8. A subtle difference is that RxJava's implementations throw checked exceptions. This eliminates a pain point from RxJava 1.*, where checked exceptions had to be handled in lambda expressions that yielded them.
In the following table, the RxJava 1.* equivalents are listed as well, but note that the SAM column corresponds to the RxJava 2.* and 3.0 type. Another important point is that RxJava ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access