July 2017
Beginner to intermediate
715 pages
17h 3m
English
As we already learned, Java Streams API is a very powerful way of dealing with data in a functional way. The Cyclops React library extends this API by adding new operations on streams and allows for more control of the flow execution. To include the library, add this to the pom.xml file:
<dependency> <groupId>com.aol.simplereact</groupId> <artifactId>cyclops-react</artifactId> <version>1.0.0-RC4</version> </dependency>
Some of the methods it adds are zipWithIndex and cast and convenience collectors such as toList, toSet, and toMap. What is more, it gives more control for parallel execution, for example, it is possible to provide a custom executor, which will be used for processing data or intercepting exceptions declaratively. ...