I see many blog posts mention a Streams class and I see it was once part of the lambda branch API. It appears to be non-public API now and it does not match the previous implementation. Is there a different way to do Streams.concat()
or to append multiple values to a stream?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The Streams
class got split and some of its methods were moved to StreamSupport, which does not contain a concat
method in the latest build. The rationale for the split is explained here.
The specific case of concat
has been mentioned separately in this post where it was proposed for removal and was apparently removed.
However a later post seems to indicate that it will reappear in future builds.