Ordering & Short-circuiting
Understand ordering in Streams and how short-circuiting works.
Intro
Ordering affects results and performance. Short-circuiting stops processing early when possible.
Order
Some streams keep order (like from List), others do not (like from Set). You can also call unordered().
All lessons in this course
- Ordering & Short-circuiting
- Parallel Streams Basics
- Common Pitfalls