Skip to content

Commit 795c59b

Browse files
committed
update readme.md
1 parent 35217d9 commit 795c59b

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

README.md

+32-2
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 Flyweight Design Pattern
2+
Flyweight pattern tries to reuse already existing similar kind objects by storing them and creates new object when no matching object is found. Flyweight pattern is used to reduce the number of objects created and to decrease memory footprint and increase performance.
3+
4+
## Diagram
5+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/flyweight-pattern/diagrams/Flyweight%20Pattern%20class%20diagram.jpeg "Diagram")
6+
7+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/flyweight-pattern/diagrams/Milky_Way-100_billion_stars.jpg "Diagram")
8+
9+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/flyweight-pattern/diagrams/Flyweight%20pattern%20sequence%20diagram.png "Diagram")
10+
11+
### When to use Flyweight Design Pattern
12+
Flyweight pattern is used when we need to create a large number of similar objects (which are immutable). This reduces memory foot print and keeps app awary from java.lang.OutOfMemoryError.
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)