Glossary: Java Beyond the Basics
Collector
Also written: Collectors, collect, groupingBy, partitioningBy, summingInt, counting, joining, toMap
A recipe passed to collect() that says how to gather a stream's results, such as groupingBy to sort sales into a map by café, or partitioningBy to split them by a yes-or-no test.