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