Returns a collector that groups the elements based on the classifier function, and performs a reduction operation on the values of each key using the downstream collector.
There are no guarantees on the type, mutability, or thread-safety of the returned map.
classifier |
a classifier function mapping elements to keys |
downstream |
a downstream collector |
the collector implementation |