v0.4
·
42 commits
to master
since this release
This release adds a new possibility to use UnixStream components with the standard Stream API:
- All filters have been extracted in the
Predicates
class - All transformers have been extracted in the
Functions
class
With this refactoring, it is now possible to use UnixStream as a components library 100% compatible with the standard Java Stream API. Here is an example:
Stream.of("1,foo", "2,bar")
.filter(Predicates.grep("a"))
.map(Functions.cut(",", 2))
.forEach(System.out::println);
//prints:
//bar