Advanced Features in Java: Using the Java Stream API with Collections

Java    |    Expert
  • 9 videos | 1h 11m 14s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 28 users Rating 4.7 of 28 users (28)
In this course, you'll learn about how the Stream APIs provide ways to work with collections as streams of objects. You'll examine how operations such as filter, map, and foreach can be applied to collections by treating them as streams of data elements. Next, you'll learn how to use both anonymous inner class objects and lambda functions with streams, how to define predicates, and how to chain multiple stream operators together into a single pipeline that ends with a terminal operator returning a result. Next, you'll discover the differences between terminal and non-terminal operations, as well as between two different types of terminal operations - reduce and collect operations. Finally, you'll see how collect operations can be used to perform extremely complex operations on collections with minimal code.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Recognize what streams are and some of the methods you can invoke on them
    Describe how to test whether all elements in a stream satisfy a specific condition
    Demonstrate that predicates can be used to transform one stream object into another
    Associate streams containing integer, long, float, and double objects to specific stream types
  • Apply terminal operations on predicates
    Assess how to test streams with the .collect function in order to return a collection
    Define a custom collector and use it with a stream predicate
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 30s
  • 8m
    After completing this video, you will be able to recognize what streams are and some of the methods you can use on them. FREE ACCESS
  • Locked
    3.  Stream Predicates
    10m 4s
    After completing this video, you will be able to describe how to test whether all elements in a stream satisfy a specific condition. FREE ACCESS
  • Locked
    4.  Predicates that Return Streams
    10m 48s
    Learn about that predicates can be used to transform one stream object into another. FREE ACCESS
  • Locked
    5.  Mapping a Predicate
    9m 19s
    In this video, you will learn how to associate streams containing integer, long, float, and double objects to specific stream types. FREE ACCESS
  • Locked
    6.  Terminal Operations Using Predicates
    9m 20s
    Learn how to apply terminal operations to predicates. FREE ACCESS
  • Locked
    7.  The Use of Collectors
    10m 55s
    In this video, you will learn how to test streams with the .collect function in order to return a collection. FREE ACCESS
  • Locked
    8.  Custom Collectors
    8m 18s
    In this video, you will learn how to define a custom collector and use it with a stream predicate. FREE ACCESS
  • Locked
    9.  Course Summary
    1m 59s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 100 users Rating 4.7 of 100 users (100)
Rating 4.5 of 526 users Rating 4.5 of 526 users (526)
Rating 4.6 of 25 users Rating 4.6 of 25 users (25)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 26 users Rating 4.5 of 26 users (26)
Rating 4.8 of 4 users Rating 4.8 of 4 users (4)
Rating 4.4 of 50 users Rating 4.4 of 50 users (50)