A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/stream/BaseStream.html below:

BaseStream (Java SE 11 & JDK 11 )

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

Stream

and

IntStream

, computing the sum of the weights of the red widgets:


     int sum = widgets.stream()
                      .filter(w -> w.getColor() == RED)
                      .mapToInt(w -> w.getWeight())
                      .sum();
 

See the class documentation for

Stream

and the package documentation for

java.util.stream

for additional specification of streams, stream operations, stream pipelines, and parallelism, which governs the behavior of all stream types.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4