March 2021
Intermediate to advanced
768 pages
15h 31m
English
Streams, in conjunction with lambdas, allow developers to process data from Collections in a powerful way. In this lesson, we will cover a lot of terminology and look at these features to see how we can use them to simplify our code and make it more efficient.
When we use Collections to store objects in our programs, we generally need to do more than simply put the objects in the Collection: we also need to store, retrieve, remove, and update these objects.
Aggregate operations use lambdas to perform actions on the objects in a Collection. For example, you can use aggregate operations to:
Address objectsAddress objects for people from Akron, OhioAddress objects for people from Akron, Ohio, grouped by ZIP codeServer object has a purchase date field)These tasks can be accomplished by using aggregate operations along with pipelines and streams.
A pipeline is simply a sequence ...
Read now
Unlock full access