docs: add diagrams for spatial partition, special case, specification, state, step builder, strangler, strategy, subclass sandbox

This commit is contained in:
Ilkka Seppälä
2025-04-10 21:13:17 +03:00
parent 8e823909da
commit cd224ea5fe
16 changed files with 32 additions and 4 deletions
+4
View File
@@ -37,6 +37,10 @@ In [Patterns of Enterprise Application Architecture](https://amzn.to/3WfKBPR) Ma
> If youll pardon the unresistable pun, I see [Null Object](https://java-design-patterns.com/patterns/null-object/) as special case of Special Case.
Sequnce diagram
![Special Case sequence diagram](./etc/special-case-sequence-diagram.png)
## Programmatic Example of Special Case Pattern in Java
The Special Case Pattern is a software design pattern that is used to handle a specific, often uncommon, case separately from the general case in the code. This pattern is useful when a class has behavior that requires conditional logic based on its state. Instead of cluttering the class with conditional logic, we can encapsulate the special behavior in a subclass.
Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB