Returns a collector that groups the elements based on the classifier function.
There are no guarantees on the type, mutability, or thread-safety of the returned map and list.
classifier |
a classifier function mapping elements to keys |
the collector implementation |