Creates a sink collecting items into a map using item values.
The type of items in the stream
The type of map keys
The function to extract the key from each item
A sink that collects items into a map with keys from the key selector and items as values
Creates a sink collecting items into a map using custom keys and values.
The type of map values
The function to transform each item into a map value
A sink that collects items into a map with keys and values from the selectors
Creates a sink collecting items into a map using item values.