Skip to content

Commit cc4330a

Browse files
committed
update readme.md
1 parent e15b5f3 commit cc4330a

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
1-
# DesignPatternsJava9
2-
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.
1+
# What is State Design Pattern
2+
State pattern allows an object to behave differently depending on its internal state.
3+
4+
## Diagram
5+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/state-pattern/diagrams/State-Design-Pattern-class-diagram.jpeg "Diagram")
6+
7+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/state-pattern/diagrams/State-Design-Pattern-generic.jpeg "Diagram")
8+
9+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/state-pattern/diagrams/StatePatternSequenceDiagram.png "Diagram")
10+
11+
### When to use State Design Pattern
12+
When the behaviour of an object should be influenced by it's state, and when complex conditions tie object behaviour to it's state.
13+
14+
### Learn Design Patterns with Java by Aseem Jain
15+
This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain".
16+
17+
### Course link:
18+
https://www.packtpub.com/application-development/learn-design-patterns-java-9-video
19+
20+
### ![ http://in.linkedin.com/in/premaseem](https://github.com/premaseem/DesignPatternsJava9/blob/master/linkedin.png "http://in.linkedin.com/in/premaseem") Profile: http://in.linkedin.com/in/premaseem
21+
22+
### Authors blog on design patterns:
23+
https://premaseem.wordpress.com/category/computers/design-patterns/
24+
25+
### Software Design pattern community face book page:
26+
https://www.facebook.com/DesignPatternGuru/
27+
28+
### Note:
29+
* This code base will work on Java 9 and above versions.
30+
* `diagrams` folders carry UML diagrams.
31+
* `pattern` folder has code of primary example.
32+
* `patternBonus` folder has code of secondary or bonus example.

0 commit comments

Comments
 (0)