partition


Description:


public Collector<Map<bool,List<G>>,Object,G> partition<G> (owned Predicate<G> pred)

Returns a collector that partitions the elements based on the pred function.

The result map always contains lists for both true and false keys. There are no guarantees on the type, mutability, or thread-safety of the returned map and list.

Parameters:

pred

a predicate function

Returns:

the collector implementation


Namespace: Gpseq.Collectors
Package: gpseq-1.0