LongStream
Interface LongStream
- All Superinterfaces:
- AutoCloseable, BaseStream<Long,LongStream>
public interface LongStream extends BaseStream<Long,LongStream>
A sequence of primitive long-valued elements supporting sequential and parallel aggregate operations. This is the long
primitive specialization of Stream
.
The following example illustrates an aggregate operation using Stream
and LongStream
, computing the sum of the weights of the red widgets:
lon