Explore >> Select a destination


You are here

nikgrozev.com
| | www.jrebel.com
2.3 parsecs away

Travel
| | What are Java Streams? Are streams only in Java 8? Join us as we explore these questions along with best practices for using streams in development.
| | www.interviewbit.com
1.5 parsecs away

Travel
| | Table Of Contents show What is Java 8? Top Java 8 Features With Examples Functional Interfaces And Lambda Expressions forEach() Method In Iterable Interface...
| | www.chrisritchie.org
2.3 parsecs away

Travel
| | Doing distributed processing with Java's parallelStream.
| | richardstartin.github.io
18.2 parsecs away

Travel
| The streams API has been around for a while now, and I'm a big fan of it. It allows for a clean declarative programming style, which permits various optimisations to occur, and keeps the pastafarians at bay. I also think the Stream is the perfect abstraction for data interchange across API boundaries. This is partly because a Stream is lazy, meaning you don't need to pay for consumption until you actually need to, and partly because a Stream can only be used once and there can be no ambiguity about ownership. If you supply a Stream to an API, you must expect that it has been used and so must discard it. This almost entirely eradicates defensive copies and can mean that no intermediate data structures need ever exist. Despite my enthusiasm for this abstractio...