Tag: streams
Total: 17 Posts
Posts of Tag: streams
  1. 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 More
    JavaStreamstreams
  2. Java 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 More
    JavaStreamstreams
  3. Java 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 More
    Javastreams
  4. Java 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 More
    JavaStreamstreamslist
  5. Guide 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 More
    Javastreams
  6. Guide 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 More
    Javastreams
  7. Guide 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 More
    Javastreams
  8. Java 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 More
    JavaStreamstreams
  9. Java 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 More
    JavaStreamstreams
  10. Guide 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 More
    Javastreams
  11. Java 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 More
    JavaStreamstreams
  12. Java 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 More
    JavaStreamstreams