0

I've downloaded JDK8.0 early access release few days ago (file name: jdk-8-ea-bin-b82-linux-x64-21_mar_2013.tar.gz)

I can find java.util.function package. (only contains Interfaces), and it is do lambda perfectly. (OK)

But, What I search for but couldn't find is the list/map manipulations functions (forEach, filter, map, ...etc).

So tutorials says I will find in java.util.List interface, and others refers to non-existed java.util.Stream class. But I Couldn't find any new methods in the interface, nor could find this new class.

4

1 回答 1

3

很简单,构建版本在接口jdk-8-ea-bin-b82中缺少新的 Java 8 方法。Iterable至少 82 到 87 之间的所有构建版本都缺少这些方法。(请参阅此相关但未答复的早期访问帖子)。最新版本(例如 build 91)包含新方法。

于 2013-05-25T15:44:46.773 回答