Use this tag for questions specific to Java 8 which is version 8 (internal number 1.8) of the Java platform, released on 18 March 2014.
I'm trying to come up with a more succinct expression for the "keyMapper" function parameter in the following Collectors.toMap() …
java collections lambda java-8 java-streamJavadoc of Collector shows how to collect elements of a stream into a new List. Is there an one-liner that …
java java-8 java-stream collectorsWhile running sencha app build production I am getting the following error: Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\…
java java-8 sencha-touch sencha-touch-2 sencha-cmdGeneral question: What's the proper way to reverse a stream? Assuming that we don't know what type of elements that …
java list sorting java-8 java-streamIs it possible to specify a custom thread pool for Java 8 parallel stream? I can not find it anywhere. Imagine …
java concurrency parallel-processing java-8 java-streamSometimes you want to filter a Stream with more than one condition: myList.stream().filter(x -> x.size() &…
java lambda filter java-8 java-streamI have just discovered the new Java 8 stream capabilities. Coming from Python, I was wondering if there was now a …
java arrays java-8 java-streamI know how to "transform" a simple Java List from Y -> Z, i.e.: List<String> …
java mapreduce java-8 java-stream collectors