Java 8 introduced threads. There are three streams for primitives (IntStream ( int ), LongStream ( long ), DoubleStream ( double )) and a common stream for objects.
I assume that there is no FloatStream, CharStream, ByteStream or ShortStream, because these are all "subtypes" of existing streams. That is, a short stream can have every element easily converted to int .
But why not a BooleanStream ?
source share