From 3a569a691dbc364eee28982cef5ca892a7029712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Mon, 27 May 2024 07:23:04 +0300 Subject: [PATCH] docs: update parameter object --- parameter-object/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parameter-object/README.md b/parameter-object/README.md index 933ae869c..d02be23a3 100644 --- a/parameter-object/README.md +++ b/parameter-object/README.md @@ -127,10 +127,6 @@ public class App { This example demonstrates how the Parameter Object pattern can simplify method signatures and make the code more maintainable. It also shows how the pattern can be combined with the Builder pattern to make object creation more flexible and readable. -## Class diagram - -![Parameter Object](./etc/parameter-object.png "Parameter Object") - ## Applicability * Methods require multiple parameters that logically belong together. @@ -138,6 +134,11 @@ This example demonstrates how the Parameter Object pattern can simplify method s * The parameters may need to evolve over time, adding more properties without breaking existing method signatures. * It’s beneficial to pass data through a method chain. +## Tutorials + +* [Does Java have default parameters? (Daniel Olszewski)](http://dolszewski.com/java/java-default-parameters) + + ## Known Uses * Java Libraries: Many Java frameworks and libraries use this pattern. For example, Java’s java.util.Calendar class has various methods where parameter objects are used to represent date and time components. @@ -165,7 +166,6 @@ Trade-offs: ## Credits -* [Does Java have default parameters? - Daniel Olszewski](http://dolszewski.com/java/java-default-parameters) * [Design Patterns: Elements of Reusable Object-Oriented Software](https://amzn.to/3w0pvKI) * [Effective Java](https://amzn.to/4cGk2Jz) * [Refactoring: Improving the Design of Existing Code](https://amzn.to/3TVEgaB)