I’m learning about Stream in Java and want to figure out how it actually works.
And I saw an https://developer.ibm.com/articles/j-java-streams-3-brian-goetz/ by Brian Goetz. He wrote about stream pipeline :
A stream pipeline is built by constructing a linked-list representation of the stream source and its intermediate operations
But, I don’t understand this. What is the role of LinkedList in here ? Why do they use LinkedList instead of other implementations of List like ArrayList ?
I have checked source code of Stream but didn’t seen any relevant to LinkedList