mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 10:58:42 +00:00
docs: update acyclic visitor documentation
This commit is contained in:
@@ -29,6 +29,11 @@ In plain words
|
||||
|
||||
> The Acyclic Visitor pattern allows new functions to be added to existing class hierarchies without affecting those hierarchies, and without creating the dependency cycles that are inherent to the GangOfFour VisitorPattern.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
|
||||
## Programmatic Example of Acyclic Visitor in Java
|
||||
|
||||
In this Java example, we have a hierarchy of modem classes illustrating the Acyclic Visitor pattern. The modems in this hierarchy need to be visited by an external algorithm based on filtering criteria (is it Unix or DOS compatible modem).
|
||||
@@ -138,10 +143,6 @@ Program output:
|
||||
09:15:11.127 [main] INFO com.iluwatar.acyclicvisitor.ConfigureForUnixVisitor -- Zoom modem used with Unix configurator.
|
||||
```
|
||||
|
||||
## Acyclic Visitor Pattern Class Diagram
|
||||
|
||||

|
||||
|
||||
## When to Use the Acyclic Visitor Pattern in Java
|
||||
|
||||
This pattern can be used:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user