Course contentsShow
Java
Lesson 1582 of 2,87034. Collectors in DepthPro lesson

partitioningBy with Downstream Collectors

Use the two-argument form partitioningBy(predicate, downstream) to transform each partition, like counting or summing instead of collecting to lists.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.