filmov
tv
Java Streams API - Stream terminal operations tutorial

Показать описание
The terminal operations consume the elements of the stream and produce a result or a side effect.
Once a terminal operation is invoked, the stream is consumed, and further processing of the stream is not possible.
We can have multiple terminal operations in a stream pipeline, but each terminal operation triggers the execution of the stream pipeline independently, and the stream cannot be reused after a terminal operation has been invoked.
VIDEO CHAPTERS:
00:00 Introduction
00:35 "1. ForEach/forEachOrdered operations"
01:29 "2. Count operation"
01:46 "3. Collect operation"
02:34 "4. ToArray operation"
03:21 "5. Reduce operation"
05:56 "6. Min/max operations"
07:04 "7. AllMatch operation"
07:40 "8. NoneMatch operation"
08:09 "9. AnyMatch operation"
08:37 "10. FindFirst operation"
08:51 "11. FindAny operation"
Once a terminal operation is invoked, the stream is consumed, and further processing of the stream is not possible.
We can have multiple terminal operations in a stream pipeline, but each terminal operation triggers the execution of the stream pipeline independently, and the stream cannot be reused after a terminal operation has been invoked.
VIDEO CHAPTERS:
00:00 Introduction
00:35 "1. ForEach/forEachOrdered operations"
01:29 "2. Count operation"
01:46 "3. Collect operation"
02:34 "4. ToArray operation"
03:21 "5. Reduce operation"
05:56 "6. Min/max operations"
07:04 "7. AllMatch operation"
07:40 "8. NoneMatch operation"
08:09 "9. AnyMatch operation"
08:37 "10. FindFirst operation"
08:51 "11. FindAny operation"