JEP 485: Stream Gatherers
openjdk.org
openjdk.org
The Java roadmap over the past few years is really starting to pay off. They’ve managed to close a lot of the gaps with other high-level JVM languages (like Scala, Clojure, and Kotlin) while still keeping backward compatibility. It’s brilliant that you can slip these newer bits into a 10-year-old codebase without any major issues.