IntStream

Interface IntStream

All Superinterfaces:
AutoCloseable, BaseStream<Integer,IntStream>
public interface IntStream
extends BaseStream<Integer,IntStream>

A sequence of primitive int-valued elements supporting sequential and parallel aggregate operations. This is the int primitive specialization of Stream.

The following example illustrates an aggregate operation using Stream and IntStream, computing the sum of the weights of the red widgets:

int