摘要:
Visitor: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. 阅读全文
摘要:
Visitor: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. 阅读全文
摘要:
Memento:Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later. 阅读全文
摘要:
Mediator: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. 阅读全文
摘要:
Interpreter:Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language. 阅读全文
摘要:
Prototype: Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. 阅读全文
摘要:
Builder:Separate the construction of a complex object from its representation so that the same construction process can create different representations. 阅读全文
摘要:
Chain of Responsibility: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. 阅读全文
摘要:
Flyweight:Use sharing to support large numbers of fine-grained objects efficiently. 阅读全文
摘要:
The Bridge Pattern:Decouple an abstraction from its implementation so that the two can vary independently. 阅读全文
摘要:
The Proxy Patternprovides a surrogate or placeholder for another object to control access to it. 阅读全文
摘要:
The State Patternallows an object to alter its behavior when its internal state changes. The object will appear to change its class. 阅读全文
摘要:
The Composite Patternallows you to compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly. 阅读全文
摘要:
The Iterator Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation. 阅读全文
|