feat: Function composition (#2954)

* feature: Implement Virtual Proxy pattern #2940

* feature: Implement Virtual Proxy pattern #2940

* feature: Implement Virtual Proxy pattern #2940

* feature: Implement Virtual Proxy pattern #2940

* feature: Implement Virtual Proxy pattern #2940

* feature: Implement Virtual Proxy pattern, tests added

* feature: Implement Virtual Proxy pattern, tests added

* feature: Implement Virtual Proxy pattern, tests added

* feature: Implement Virtual Proxy pattern, tests added

* feature: Implement Virtual Proxy pattern, tests added

* feature: Implement function composition pattern #2897

* task: isolate virtual proxy pattern

* task: isolate virtual proxy pattern

* refactoring: readme.md
This commit is contained in:
Adelya
2024-06-01 05:26:46 +03:00
committed by GitHub
parent 68ef414e19
commit 684b2e219e
10 changed files with 495 additions and 0 deletions
@@ -0,0 +1,21 @@
@startuml
skinparam monochrome true
participant "App" as App
participant "FunctionComposer" as Composer
participant "Function<Integer, Integer>" as F1
create F1
App -> F1 : func1 = x -> x * 2
create F1
App -> F1 : func2 = x -> x * x
App -> Composer : func1, func2
activate Composer
Composer -> F1 : func1.andThen(func2)
deactivate Composer
activate F1
F1 -> App : composedFunction
deactivate F1
@enduml