Skip to content

Commit 7ed9e39

Browse files
committed
docs: null object diagram
1 parent f01235b commit 7ed9e39

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

null-object/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Wikipedia says
3535

3636
> In object-oriented computer programming, a null object is an object with no referenced value or with defined neutral ("null") behavior. The null object design pattern describes the uses of such objects and their behavior (or lack thereof).
3737
38+
Sequence diagram
39+
40+
![Null Object sequence diagram](./etc/null-object-sequence-diagram.png)
41+
3842
## Programmatic Example of Null Object in Java
3943

4044
By implementing the Null Object Pattern, Java developers can ensure that their applications handle 'empty' objects more gracefully, enhancing code stability and readability.
38.9 KB
Loading

0 commit comments

Comments
 (0)