Looking at the method StreamSupport#stream(Spliterator, boolean)
and similar methods for primitive streams. If the boolean
parameter is true you get a parallel stream.
Why does this method need that parameter, when you can make a stream parallel by invoking Stream#parallel()
?
I.e. is StreamSupport.stream(mySpliterator, true);
different in any way to StreamSupport.stream(mySpliterator, false).parallel();
?