group_by_with
Description:
public Collector<Map<K,V>,Object,G> group_by_with<K,V,G> (owned MapFunc<K,G> classifier, Collector<V,Object,G> downstream)
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.
Parameters:
classifier |
a classifier function mapping elements to keys |
downstream |
a downstream collector |
Returns:
the collector implementation |
Namespace: Gpseq.Collectors
Package: gpseq-1.0