Use this tag for questions related to the use of the Stream API.
say I have the following code public class A { int x; public boolean is() {return x%2==0;} public static boolean is (…
java java-8 java-stream method-referenceI need to generate a unique friend list from a list that can have duplicates by merging all duplicate entries …
java list merge java-stream reduceI have a Mono A. The Object A contains two lists. I want to create direct two Flux. Is this …
java java-stream spring-webfluxI'm porting a piece of code from .NET to Java and stumbled upon a scenario where I want to use …
java dictionary java-8 java-stream collectI often need the maximum element of a collection according to the maximization of a criterion which produces a double …
java java-8 java-stream argmaxI just read about Branch-Prediction and wanted to try how this works with Java 8 Streams. However the performance with Streams …
java performance java-8 java-stream branch-predictionI proceed with java 8 learning. I have found an interesting behavior: let's see code sample: // identity value and accumulator and …
java java-8 java-stream reduceI was trying to convert this String r = ""; for ( Persona p : list ) { r += p.lastName; } To stream().filter.collect() form, …
java lambda java-stream collectI have the following code: public boolean isImageSrcExists(String imageSrc) { int resultsNum = 0; List<WebElement> blogImagesList = driver.findElements(blogImageLocator); …
java lambda java-8 java-stream predicateIs there any way to elegantly initialize and populate a multi-value Map<K,Collection<V>> using …
java dictionary java-stream multimap