Skip to content

Commit b563de0

Browse files
committed
Update README.md
1 parent 5305e6b commit b563de0

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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/llitfkitfk/java-design-patterns/blob/master/builder/etc/builder_1.png "Builder")
23+
![alt text](https://github.com/iluwatar/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/llitfkitfk/java-design-patterns/blob/master/factory-method/etc/factory-method_1.png "Factory Method")
32+
![alt text](https://github.com/iluwatar/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/llitfkitfk/java-design-patterns/blob/master/prototype/etc/prototype_1.png "Prototype")
42+
![alt text](https://github.com/iluwatar/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/llitfkitfk/java-design-patterns/blob/master/singleton/etc/singleton_1.png "Singleton")
52+
![alt text](https://github.com/iluwatar/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
@@ -63,7 +63,7 @@
6363
##Adapter
6464
**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.
6565

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

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

7676

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

7979
**Applicability:** Use the Bridge pattern when
8080
* 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.
@@ -86,7 +86,7 @@
8686
##Composite
8787
**Intent:** Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
8888

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

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

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

100100
**Applicability:** Use Decorator
101101
* to add responsibilities to individual objects dynamically and transparently, that is, without affecting other objects
@@ -105,7 +105,7 @@
105105
##Facade
106106
**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.
107107

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

110110
**Applicability:** Use the Facade pattern when
111111
* 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.
@@ -115,7 +115,7 @@
115115
##Flyweight
116116
**Intent:** Use sharing to support large numbers of fine-grained objects efficiently.
117117

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

120120
**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
121121
* an application uses a large number of objects
@@ -127,7 +127,7 @@
127127
##Proxy
128128
**Intent:** Provide a surrogate or placeholder for another object to control access to it.
129129

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

132132
**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
133133

@@ -147,7 +147,7 @@
147147
##Chain of responsibility
148148
**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.
149149

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

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

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

162162
**Applicability:** Use the Command pattern when you want to
163163

@@ -176,7 +176,7 @@
176176
##Interpreter
177177
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
178178

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

181181
**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
182182
* 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
@@ -185,7 +185,7 @@
185185
##Iterator
186186
**Intent:** Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
187187

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

190190
**Applicability:** Use the Iterator pattern
191191
* to access an aggregate object's contents without exposing its internal representation
@@ -195,7 +195,7 @@
195195
##Mediator
196196
**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.
197197

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

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

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

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

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

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

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

228228
**Applicability:** Use the Observer pattern in any of the following situations
229229

@@ -239,7 +239,7 @@
239239
##State
240240
**Intent:** Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
241241

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

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

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

253253
**Applicability:** Use the Strategy pattern when
254254
* many related classes differ only in their behavior. Stratefies provide a way to configure a class eith one of many behaviors
@@ -259,7 +259,7 @@
259259
##Template method
260260
**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.
261261

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

264264
**Applicability:** The Template Method pattern should be used
265265
* to implement the invariant parts of an algorithm once and leave it up to subclasses to implement the behavior that can vary
@@ -269,7 +269,7 @@
269269
##Visitor
270270
**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.
271271

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

274274
**Applicability:** Use the Visitor pattern when
275275
* 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
@@ -279,7 +279,7 @@
279279
##Double Checked Locking
280280
**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.
281281

282-
![alt text](https://github.com/llitfkitfk/java-design-patterns/blob/master/double-checked-locking/etc/double_checked_locking_1.png "Double Checked Locking")
282+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/double-checked-locking/etc/double_checked_locking_1.png "Double Checked Locking")
283283

284284
**Applicability:** Use the Double Checked Locking pattern when
285285
* 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)