In this lecture we break down what
Spliterator is, how it allows not only iterating elements but also splitting the data source into parts using
trySplit(), how parallel streams are built on top of this via
parallelStream() and the common
ForkJoinPool. We show the key methods (
tryAdvance,
estimateSize,
characteristics), typical characteristics (
ORDERED,
SIZED,
CONCURRENT, etc.), practical examples, a Mermaid diagram, and common mistakes when using parallel streams.