Posts

Showing posts from March, 2022

Java - Streams

Image
  Gain from studying  Streams  and  ParalleStreams  : Something very important when we are going to study some content is to know why we are studying it and what we are going to gain from it.  So I will highlight some gains with the use of  Streams  and  ParalleStreams  : The proposal around the  Streams API  is to make the developer no longer worry about how to program the behavior, leaving the part related to flow control and  loop  to the  API  .  It is something very similar to what is done with  Threads  , where the most complex aspects are encapsulated in  APIs  and the business rules become the sole responsibility of the developer. This  API  brings a more functional way of working with our collections.  It has several methods, such as  filter  ,  map  and  reduce  , which take a functional interface as a parameter, allowing us to t...