Use this tag for questions related to the use of the Stream API.
My colleague and I had a bug that was due to our assumption that an empty stream calling allMatch() would …
java lambda java-8 java-streamHow can one get the distinct (distinct based on two property) list from a list of objects. for example let …
java lambda java-8 java-stream distinct-valuesJava 8 provides Stream<T> specializations for double, int and long: DoubleStream, IntStream and LongStream respectively. However, I could …
java java-8 byte java-stream boxingMy exact scenario is inserting data to database in batches, so I want to accumulate DOM objects then every 1000, flush …
java java-8 java-stream chunkingI m using Java 8 for grouping by data. But results obtained are not in order formed. Map<GroupingKey, List&…
java-8 grouping java-stream collectI would like to do the following: List<Integer> list = IntStream.range(0, 7).collect(Collectors.toList()); but in a …
java-8 guava java-streamTo take advantage of the wide range of query methods included in java.util.stream of Jdk 8 I am attempted …
java java-8 domain-driven-design java-stream domain-modelpublic class Message { private int id; private User sender; private User receiver; private String text; private Date senddate; .. } I have …
java lambda java-8 java-stream collectorsI have a String: String ints = "1, 2, 3"; I would like to convert it to a list of ints: List<Integer&…
java java-8 java-stream collectorsI have two simple class ImageEntity and ImageList how to collect result list ImageEntity to ImageList ? List<File> …
lambda java-8 java-stream collect collectors