0% found this document useful (0 votes)
8 views2 pages

Streams by Sadhukhan

The document discusses the concept of streams in programming, highlighting their ability to perform operations on collections of data. It outlines the types of operations (intermediate and terminal), the nature of streams (ordered, unordered, sequential, and parallel), and the importance of lazy evaluation. Additionally, it mentions that streams can only be traversed once, emphasizing the need for careful management of stream operations.

Uploaded by

ssadhukhanv2.0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Streams by Sadhukhan

The document discusses the concept of streams in programming, highlighting their ability to perform operations on collections of data. It outlines the types of operations (intermediate and terminal), the nature of streams (ordered, unordered, sequential, and parallel), and the importance of lazy evaluation. Additionally, it mentions that streams can only be traversed once, emphasizing the need for careful management of stream operations.

Uploaded by

ssadhukhanv2.0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

supportsinternaliteration

to
repeatedlyapplyan operation
all elements on thestream
Streams Employeesemp h 3
streettemps
arrays
tinerCese.getsaaycyzsog
mmmm.ae
mapemployee go.name

Operation
terminals tote outprinting
system

Build Intermediate Terminal


create transform end

Ordered Unordered Sequential Parallel


Stream spean d operations
Encountered benefited maybe
performed
order at a on multiple
time objeton
me sometime

ordered sequential
Static Sequence
of
Streams
from Arrays

i
Objet arr
Stream String strings Arraysstream
strings striganed 3
stringy swingarmstream
streams

from Collections
List String stream
list
string
Streams list liststreamis
Computation orderedcollection orderedstream
unordered Comedic Unordered stream

Create oh
each one from
item the previous
separately
one
Supplier any p
randomrandom eraucous streams
swing as
sweananese random
streamgenerates
randomnexus
iterate
steam Cassia

Buildsintermediateoperation
areonlyperformedwhen
Evaluation T.ptgagteim.ttpsors
Lazy notpushed

Streams can be traversed


only once
Illegal StateOperation

You might also like