Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
3 answers
593 views

How to visualize a Stream object (and some other data types)?

I want to make a small programming tutorial which will have a number of images visualizing various data types, but I am not sure how to draw these images of the data types. Assume that I have a ...
johnny92's user avatar
  • 251
1 vote
2 answers
570 views

How do the SOLID principles apply in the context of Lambdas and Streams? [duplicate]

How are these principles applied in the context of streams and lambda expressions? In particular, the applicability with respect to the following three principles: - Single Responsibility Principle (...
L m's user avatar
  • 133
4 votes
3 answers
1k views

Alternating between Java streams and parallel streams at runtime

This is a question I constantly ask myself when designing a data intensive application: When is it appropriate to use stream() over parallelStream()? Would it make sense to use both? How do I quantify ...
user0000001's user avatar
1 vote
2 answers
2k views

How to refactor function chains for Java 8 Streams

I have a stream of data recordStream that I am collecting into a Map. Using a chain like this. recordStream .filter(Objects::nonNull) .map(RoomSchedule::new) .map(...
Archimedes Trajano's user avatar