Tag: streams
Total: 17 Posts
Posts of Tag: streams
Total: 17 Posts
Posts of Tag: streams
Java 8 Streams: Definitive Guide to Parallel Streaming with parallel()
Parallel Streams in Java 8 Today, the Java Streams API is in extensive use, making Java more functional than ever. Thus, models like MapReduce have emerged for easier stream handling. Although these models mad...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to findFirst() and findAny()
Introduction The findFirst() and findAny() methods are terminal operations (terminate and return results) of the Stream API. Yet, there is something special about them - they not only terminate a stream, but al...Learn MoreJavaStreamstreamsJava 8 - Difference Between map() and flatMap()
Introduction While Java is primarily an Object Oriented Language, many concepts of Functional Programming have been incorporated into the language. Functional programming uses functions to create and compose pr...Learn MoreJavastreamsJava 8 Streams - Collect and Reverse Stream into List
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavaStreamstreamslistGuide to Java 8 Collectors: averagingDouble(), averagingLong() and averagingInt()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavastreamsGuide to Java 8 Collectors: groupingByConcurrent()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavastreamsGuide to Java 8 Collectors: counting()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavastreamsJava 8 Streams: Definitive Guide to flatMap()
Introduction Mapping elements from one collection to another, applying a transformative function between them is a fairly common and very powerful operation. Java's functional API supports both map() and flatMa...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to partitioningBy()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavaStreamstreamsGuide to Java 8 Collectors: collectingAndThen()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavastreamsJava 8 Streams: Definitive Guide to reduce()
Introduction The reduce() method is Java 8's answer to the need for a fold implementation in the Stream API. Folding is a very useful and common functional programming feature. It operates on a collection of e...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to the filter() Method
Introduction The Java Streams API simplifies working with a collection of elements. Because streams turn these elements into a pipeline, you could test them using a set of conditions (known as predicates), befo...Learn MoreJavaStreamstreams