Collectional patterns
- Deal with groups or collections of objects.
- Deal with the details of how to compose classes and objects to form larger structures.
- Concentrate on the most efficient way of designing a class so that its instances do not carry any duplicate data.
- Allow the definition of operations on collections of objects.
Pattern Name | Description |
---|---|
Composite |
Allows both individual objects and composite objects to be treated uniformly.
|
Iterator |
Allows a client to access the contents of an aggregate object (collection of objects) in some sequential manner, without having any knowledge about the internal representation of its contents.
|
Flyweight |
The intrinsic, invariant common information and the variable parts of a class are separated into two classes, leading to savings in terms of the memory usage and the amount of time required for the creation of a large number of its instances.
|
Visitor |
Allows an operation to be defined across a collection of different objects without changing the classes of objects on which it operates.
|
No comments:
Post a Comment