本文介绍了java.util.stream.Streamable发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早期 jdk8-ea javadocs 表示有一个 java.util.stream.Streamable 界面,它似乎与流为 Iterable 必须为 Iterator

Early jdk8-ea javadocs like this indicate there was a java.util.stream.Streamable interface, which would appear to have the same relationship to a Stream as Iterable has to an Iterator.

现在看来我们仍然坚持供应商< Stream> ,这当然不一样。

Now it seems like we're stuck with Supplier<Stream>, which is certainly not the same.

Streamable 怎么了?

推荐答案

它已被删除了一段时间。 由Brian Goetz给出:

It's been removed some time ago. The rationale for the removal was given by Brian Goetz:

在他补充说:

这篇关于java.util.stream.Streamable发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 13:44