Collectors.to* signatures (original) (raw)

Michael Nascimento misterm at gmail.com
Thu Apr 18 17:54:34 PDT 2013


Hi guys,

Just got bitten by the fact toList() might produce an immutable list.

Since we don't have immutable collections as types in Java, I wonder if the old ugly List<? extends T> wouldn't be a better return type, effectively preventing people from doing what I did.

Regards, Michael



More information about the lambda-dev mailing list