Streams (Java 8+) - X vs Y
Table of contents
- map vs flatMap (Java 8 Streams)
- List.sort() vs stream().sorted()
- stream() vs parallelStream()
- forEach() vs forEachOrdered()
- filter() vs map()
- collect() vs forEach()
- findFirst() vs findAny()
- toList() vs collect(Collectors.toList())
- limit() vs skip()
- Lazy vs Eager Evaluation
- Intermediate vs Terminal Operations