Stream + BaseStream

Kasper Nielsen kasperni at
Mon Dec 16 14:23:05 PST 2013


IntStream/LongStream/DoubleStream all override

sequential(), parallel(), unordered(), ... from BaseStream.

However Stream does not override this methods so you have to cast the
stream if you are you a using a non-parameterized stream, as in:
Stream s = *null*;
s = (Stream) s.unordered();

- Kasper

More information about the lambda-libs-spec-observers mailing list