to_collection


Description:


public Collector<Collection<G>,Object,G> to_collection<G> (Supplier<Collection<G>> factory)

Returns a collector that accumulates the elements into a new collection, in encounter order.

Parameters:

factory

a supplier which supplies a new empty collection

Returns:

the collector implementation


Namespace: Gpseq.Collectors
Package: gpseq-1.0