Skip to content

Commit 97431a6

Browse files
committed
update README
1 parent 1cd804a commit 97431a6

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
##Abstract Factory
1010
**Intent:** Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
1111

12-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/abstract-factory/etc/abstract-factory_1.png "Abstract Factory")
12+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/abstract-factory/etc/abstract-factory_1.png "Abstract Factory")
1313

1414
**Applicability:** Use the Abstract Factory pattern when
1515
* a system should be independent of how its products are created, composed and represented
@@ -20,7 +20,7 @@
2020
##Builder
2121
**Intent:** Separate the construction of a complex object from its representation so that the same construction process can create different representations.
2222

23-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/builder/etc/builder_1.png "Builder")
23+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/builder/etc/builder_1.png "Builder")
2424

2525
**Applicability:** Use the Builder pattern when
2626
* the algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled
@@ -29,7 +29,7 @@
2929
##Factory Method
3030
**Intent:** Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
3131

32-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/factory-method/etc/factory-method_1.png "Factory Method")
32+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/factory-method/etc/factory-method_1.png "Factory Method")
3333

3434
**Applicability:** Use the Factory Method pattern when
3535
* a class can't anticipate the class of objects it must create
@@ -39,7 +39,7 @@
3939
##Prototype
4040
**Intent:** Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
4141

42-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/prototype/etc/prototype_1.png "Prototype")
42+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/prototype/etc/prototype_1.png "Prototype")
4343

4444
**Applicability:** Use the Prototype pattern when a system should be independent of how its products are created, composed and represented; and
4545
* when the classes to instantiate are specified at run-time, for example, by dynamic loading; or
@@ -49,7 +49,7 @@
4949
##Singleton
5050
**Intent:** Ensure a class only has one instance, and provide a global point of access to it.
5151

52-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/singleton/etc/singleton_1.png "Singleton")
52+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/singleton/etc/singleton_1.png "Singleton")
5353

5454
**Applicability:** Use the Singleton pattern when
5555
* the must be exactly one instance of a class, and it must be accessible to clients from a well-known access point
@@ -58,7 +58,7 @@
5858
##Adapter
5959
**Intent:** Convert the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
6060

61-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/adapter/etc/adapter_1.png "Adapter")
61+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/adapter/etc/adapter_1.png "Adapter")
6262

6363
**Applicability:** Use the Adapter pattern when
6464
* you want to use an existing class, and its interface does not match the one you need
@@ -69,7 +69,7 @@
6969
**Intent:** Decouple an abstraction from its implementation so that the two can vary independently.
7070

7171

72-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/bridge/etc/bridge_1.png "Bridge")
72+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/bridge/etc/bridge_1.png "Bridge")
7373

7474
**Applicability:** Use the Bridge pattern when
7575
* you want to avoid a permanent binding between an abstraction and its implementation. This might be the case, for example, when the implementation must be selected or switched at run-time.
@@ -81,7 +81,7 @@
8181
##Composite
8282
**Intent:** Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
8383

84-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/composite/etc/composite_1.png "Composite")
84+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/composite/etc/composite_1.png "Composite")
8585

8686
**Applicability:** Use the Composite pattern when
8787
* you want to represent part-whole hierarchies of objects
@@ -90,7 +90,7 @@
9090
##Decorator
9191
**Intent:** Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
9292

93-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/decorator/etc/decorator_1.png "Decorator")
93+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/decorator/etc/decorator_1.png "Decorator")
9494

9595
**Applicability:** Use Decorator
9696
* to add responsibilities to individual objects dynamically and transparently, that is, without affecting other objects
@@ -100,7 +100,7 @@
100100
##Facade
101101
**Intent:** Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
102102

103-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/facade/etc/facade_1.png "Facade")
103+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/facade/etc/facade_1.png "Facade")
104104

105105
**Applicability:** Use the Facade pattern when
106106
* you want to provide a simple interface to a complex subsystem. Subsystems often get more complex as they evolve. Most patterns, when applied, result in more and smaller classes. This makes the subsystem more reusable and easier to customize, but is also becomes harder to use for clients that don't need to customize it. A facade can provide a simple default view of the subsystem that is good enough for most clients. Only clients needing more customizability will need to look beyond the facade.
@@ -110,7 +110,7 @@
110110
##Flyweight
111111
**Intent:** Use sharing to support large numbers of fine-grained objects efficiently.
112112

113-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/flyweight/etc/flyweight_1.png "Flyweight")
113+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/flyweight/etc/flyweight_1.png "Flyweight")
114114

115115
**Applicability:** The Flyweight pattern's effectiveness depends heavily on how and where it's used. Apply the Flyweight pattern when all of the following are true
116116
* an application uses a large number of objects
@@ -122,7 +122,7 @@
122122
##Proxy
123123
**Intent:** Provide a surrogate or placeholder for another object to control access to it.
124124

125-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/proxy/etc/proxy_1.png "Proxy")
125+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/proxy/etc/proxy_1.png "Proxy")
126126

127127
**Applicability:** Proxy is applicable whenever there is a need for a more versatile or sophisticated reference to an object than a simple pointer. here are several common situations in which the Proxy pattern is applicable
128128
* a remote proxy provides a local representative for an object in a different address space.
@@ -132,7 +132,7 @@
132132
##Chain of responsibility
133133
**Intent:** Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.
134134

135-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/chain/etc/chain_1.png "Chain of Responsibility")
135+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/chain/etc/chain_1.png "Chain of Responsibility")
136136

137137
**Applicability:** Use Chain of Responsibility when
138138
* more than one object may handle a request, and the handler isn't known a priori. The handler should be ascertained automatically
@@ -142,7 +142,7 @@
142142
##Command
143143
**Intent:** Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
144144

145-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/command/etc/command_1.png "Command")
145+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/command/etc/command_1.png "Command")
146146

147147
**Applicability:** Use the Command pattern when you want to
148148
* parameterize objects by an action to perform. You can express such parameterization in a procedural language with a callback function, that is, a function that's registered somewhere to be called at a later point. Commands are an object-oriented replacement for callbacks.
@@ -154,7 +154,7 @@
154154
##Interpreter
155155
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
156156

157-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/interpreter/etc/interpreter_1.png "Interpreter")
157+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/interpreter/etc/interpreter_1.png "Interpreter")
158158

159159
**Applicability:** Use the Interpreter pattern when there is a language to interpret, and you can represent statements in the language as abstract syntax trees. The Interpreter pattern works best when
160160
* the grammar is simple. For complex grammars, the class hierarchy for the grammar becomes large and unmanageable. Tools such as parser generators are a better alternative in such cases. They can interpret expressions without building abstract syntax trees, which can save space and possibly time
@@ -163,7 +163,7 @@
163163
##Iterator
164164
**Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
165165

166-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/iterator/etc/iterator_1.png "Iterator")
166+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/iterator/etc/iterator_1.png "Iterator")
167167

168168
**Applicability:** Use the Iterator pattern
169169
* to access an aggregate object's contents without exposing its internal representation
@@ -173,7 +173,7 @@
173173
##Mediator
174174
**Intent:** Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
175175

176-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/mediator/etc/mediator_1.png "Mediator")
176+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/mediator/etc/mediator_1.png "Mediator")
177177

178178
**Applicability:** Use the Mediator pattern when
179179
* a set of objects communicate in well-defined but complex ways. The resulting interdependencies are unstructured and difficult to understand
@@ -183,7 +183,7 @@
183183
##Memento
184184
**Intent:** Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.
185185

186-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/memento/etc/memento_1.png "Memento")
186+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/memento/etc/memento_1.png "Memento")
187187

188188
**Applicability:** Use the Memento pattern when
189189
* a snapshot of an object's state must be saved so that it can be restored to that state later, and
@@ -192,7 +192,7 @@
192192
##Model-View-Presenter
193193
**Intent:** Apply a "Separation of Concerns" principle in a way that allows developers to build and test user interfaces.
194194

195-
![alt text](https://github.com/pitsios-s/java-design-patterns/blob/master/model-view-presenter/etc/model-view-presenter_1.png "Model-View-Presenter")
195+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/model-view-presenter/etc/model-view-presenter_1.png "Model-View-Presenter")
196196

197197
**Applicability:** Use the Model-View-Presenter in any of the following situations
198198
* when you want to improve the "Separation of Concerns" principle in presentation logic
@@ -201,7 +201,7 @@
201201
##Observer
202202
**Intent:** Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
203203

204-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/observer/etc/observer_1.png "Observer")
204+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/observer/etc/observer_1.png "Observer")
205205

206206
**Applicability:** Use the Observer pattern in any of the following situations
207207
* when an abstraction has two aspects, one dependent on the other. Encapsulating these aspects in separate objects lets you vary and reuse them independently
@@ -211,7 +211,7 @@
211211
##State
212212
**Intent:** Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
213213

214-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/state/etc/state_1.png "State")
214+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/state/etc/state_1.png "State")
215215

216216
**Applicability:** Use the State pattern in either of the following cases
217217
* an object's behavior depends on its state, and it must change its behavior at run-time depending on that state
@@ -220,7 +220,7 @@
220220
##Strategy
221221
**Intent:** Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
222222

223-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/strategy/etc/strategy_1.png "Strategy")
223+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/strategy/etc/strategy_1.png "Strategy")
224224

225225
**Applicability:** Use the Strategy pattern when
226226
* many related classes differ only in their behavior. Stratefies provide a way to configure a class eith one of many behaviors
@@ -231,7 +231,7 @@
231231
##Template method
232232
**Intent:** Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
233233

234-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/template-method/etc/template-method_1.png "Template Method")
234+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/template-method/etc/template-method_1.png "Template Method")
235235

236236
**Applicability:** The Template Method pattern should be used
237237
* to implement the invariant parts of an algorithm once and leave it up to subclasses to implement the behavior that can vary
@@ -241,7 +241,7 @@
241241
##Visitor
242242
**Intent:** Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.
243243

244-
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/visitor/etc/visitor_1.png "Visitor")
244+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/visitor/etc/visitor_1.png "Visitor")
245245

246246
**Applicability:** Use the Visitor pattern when
247247
* an object structure contains many classes of objects with differing interfaces, and you want to perform operations on these objects that depend on their concrete classes
@@ -251,7 +251,7 @@
251251
##Double Checked Locking
252252
**Intent:** Reduce the overhead of acquiring a lock by first testing the locking criterion (the "lock hint") without actually acquiring the lock. Only if the locking criterion check indicates that locking is required does the actual locking logic proceed.
253253

254-
![alt text](https://github.com/yusufaytas/java-design-patterns/blob/master/double-checked-locking/etc/double_checked_locking.jpeg "Double Checked Locking")
254+
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/double-checked-locking/etc/double_checked_locking_1.png "Double Checked Locking")
255255

256256
**Applicability:** Use the Double Checked Locking pattern when
257257
* there is a concurrent access in object creation, e.g. singleton, where you want to create single instance of the same class and checking if it's null or not maybe not be enough when there are two or more threads that checks if instance is null or not.

0 commit comments

Comments
 (0)