docs: Improve Builder documentation

This commit is contained in:
Ilkka Seppälä committed 2024-03-16 17:44:24 +02:00
1 parent 3c4cbd564b
commit 0e13ebec98
2 files changed
+32 -20

No files matched your search

@@ -29,7 +29,7 @@ import lombok.extern.slf4j.Slf4j;
/**
* The intention of the Builder pattern is to find a solution to the telescoping constructor
* anti-pattern. The telescoping constructor anti-pattern occurs when the increase of object
* antipattern. The telescoping constructor antipattern occurs when the increase of object
* constructor parameter combination leads to an exponential list of constructors. Instead of using
* numerous constructors, the builder pattern uses another object, a builder, that receives each
* initialization parameter step by step and then returns the resulting constructed object at once.