Base interface for streams, which are sequences of elements supporting
sequential and parallel aggregate operations. The following example
illustrates an aggregate operation using the stream types
Streamand
IntStream, computing the sum of the weights of the red widgets:
int sum = widgets.stream()
See the class documentation for
Stream and the package documentation
for
java8.util.stream for additional
specification of streams, stream operations, stream pipelines, and
parallelism, which governs the behavior of all stream types.