Files
java-design-patterns/collection-pipeline
Aparna 147e2e681a feature: added code refactoring changes for 2378 (#2379)
* fix:added code refactoring changes for 2378

* fix:added code refactoring changes for 2378

* build fix for 2378

* fix: updated pom.xml files for 2378 issue

* fix:build fix for 2378 issue

Co-authored-by: aparna <aparna@aparnas-MacBook-Air.local>
2022-12-10 16:55:37 +02:00
..
2019-12-07 18:03:49 +02:00
2022-09-14 23:22:24 +05:30

title, category, language, tag
title category language tag
Collection Pipeline Functional en
Reactive

Intent

Collection Pipeline introduces Function Composition and Collection Pipeline, two functional-style patterns that you can combine to iterate collections in your code. In functional programming, it's common to sequence complex operations through a series of smaller modular functions or operations. The series is called a composition of functions, or a function composition. When a collection of data flows through a function composition, it becomes a collection pipeline. Function Composition and Collection Pipeline are two design patterns frequently used in functional-style programming.

Class diagram

alt text

Applicability

Use the Collection Pipeline pattern when

  • When you want to perform a sequence of operations where one operation's collected output is fed into the next
  • When you use a lot of statements in your code
  • When you use a lot of loops in your code

Credits