Why no methods like toList() / toMutableList() / toSet() / toMutableSet() on Java Collection and Stream interfaces ?

Zheka Kozlov orionllmain at gmail.com
Tue Mar 19 08:27:08 UTC 2019


Stream.toList(): https://bugs.openjdk.java.net/browse/JDK-8180352

вт, 19 мар. 2019 г. в 15:14, Tobias Gierke <tobias.gierke at code-sourcery.de>:

> Hi,
>
> This has probably been asked  before but I somehow couldn't find a JEP
> were this proposal got rejected... adding these methods to me seems like
> an easy way to get rid of a lot of boilerplate code.
>
>
> Cheers,
> Tobias
>
>


More information about the discuss mailing list