By applying a filter predicate we can adapt a collector to accept only elements matching a predicate.
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/nine/api/CollectorsApi.java[tag=filtering]With the new flatMapping method a stream of streams or stream of collections a collector is adapted to return a flattened result.