-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# DesignPatternsJava9 | ||
This repo consists Gang of Four Design patterns code on Java 9. Each branch in the repository has code of 1 design pattern. Switch repository to try out different design patterns. | ||
# What is Visitor Design Pattern | ||
Visitor design pattern uses a visitor class which changes the executing algorithm of an element class. By this way, execution algorithm of element can vary as and when visitor varies. | ||
|
||
## Diagram | ||
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/visitor-pattern/diagrams/Visitor-Pattern-class-diagram%20.png "Diagram") | ||
|
||
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/visitor-pattern/diagrams/visitorPattern-generic.jpeg "Diagram") | ||
|
||
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/visitor-pattern/diagrams/VisitorSequenceDiagram.png "Diagram") | ||
|
||
### When to use Visitor Design Pattern | ||
Visitor pattern is used when we have to perform an operation on a group of similar kind of Objects. With the help of visitor pattern, we can move the operational logic from the objects(Elements) to another class (Visitor class). | ||
|
||
### Learn Design Patterns with Java by Aseem Jain | ||
This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain". | ||
|
||
### Course link: | ||
https://www.packtpub.com/application-development/learn-design-patterns-java-9-video | ||
|
||
### Authors blog on design patterns: | ||
https://premaseem.wordpress.com/category/computers/design-patterns/ | ||
|
||
### Software Design pattern community face book page: | ||
https://www.facebook.com/DesignPatternGuru/ | ||
|
||
Note: This code base will work on Java 9 and above versions. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters