Java 12

Teeing Collector in Java 12

The teeing collector, available since Java 12 as Collectors::teeing, forwards its input to two other collectors before merging their results with a function.