Why doesn't Java have a BooleanStream?

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 ?

+6
source share

Source: https://habr.com/ru/post/975453/


All Articles