Explore >> Select a destination


You are here

minborgsjavapot.blogspot.com
| | blog.jooq.org
2.8 parsecs away

Travel
| | With Java 8 being mainstream now, people start using Streams for everything, even in cases where that's a bit exaggerated (a.k.a. completely nuts, if you were expecting a hyperbole here). For instance, take mykong's article here, showing how to collect a Map's entry set stream into a list of keys and a list of values:...
| | mydeveloperplanet.com
3.5 parsecs away

Travel
| | In this blog, we are going to take a closer look at the Java 8 Streams API. We will mainly do so by means of examples. We will cover many operations and after reading this blog, you will have a very good basic understanding of the Streams API. Enjoy reading! 1. Introduction The Streams API...
| | jamesward.com
3.3 parsecs away

Travel
| | [AI summary] The author provides a Java and Akka code example demonstrating how to compose Futures to execute multiple tasks concurrently and wait for their completion.
| | richardstartin.github.io
19.0 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...