@Unihedro
static Collector toList()
: Returns a
Collector
that accumulates the input elements into a new
List
. There are no guarantees on the type, mutability, serializability, or thread-safety of the
List
returned; if more control over the returned
List
is required, use #toCollection(Supplier).