阅读背景:

Java 8中的顺序流是否在调用collect时使用组合器参数?

来源:互联网 

If I call collect on a sequential stream (eg. from calling Collection.stream()) then will it use the combiner parameter I pass to collect? I presume not but I see nothing in the documentation. If I'm correct, then it seems unfortunate to have to supply something that I know will not be used (if I know it is a sequential stream).If I call collect on a sequential stream (eg. f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: