deps: Refactor dependencies (#3224)

* remove spring dep
move junit, logging, mockito under dep mgmt

* upgrade anti-corruption-layer deps

* async method invocation

* balking, bloc

* bridge to bytecode

* caching

* callback - cqrs

* component - health check

* hexagonal - metadata mapping

* rest of the patterns

* remove checkstyle, take spotless into use
This commit is contained in:
Ilkka Seppälä
2025-03-29 19:34:27 +02:00
committed by GitHub
parent 371439aeaa
commit 0ca162a55c
1863 changed files with 14408 additions and 17637 deletions
@@ -27,20 +27,21 @@ package com.iluwatar.function.composition;
import java.util.function.Function;
/**
* Class for composing functions using the Function Composition pattern.
* Provides a static method to compose two functions using the 'andThen' method.
* Class for composing functions using the Function Composition pattern. Provides a static method to
* compose two functions using the 'andThen' method.
*/
public class FunctionComposer {
/**
* Composes two functions where the output of the first function becomes
* the input of the second function.
* Composes two functions where the output of the first function becomes the input of the second
* function.
*
* @param f1 the first function to apply
* @param f2 the second function to apply after the first
* @return a composed function that applies f1 and then f2
*/
public static Function<Integer, Integer> composeFunctions(Function<Integer, Integer> f1, Function<Integer, Integer> f2) {
public static Function<Integer, Integer> composeFunctions(
Function<Integer, Integer> f1, Function<Integer, Integer> f2) {
return f1.andThen(f2);
}
}