In this repository i will to implement all gang of four design pattern in java
Description of all packages in src file
Name | Description |
---|---|
Construction | Creational design patterns are design patterns that deal with object creation mechanisms |
Structural | Structural Design Patterns are Design Patterns that ease the design by identifying a simple way to realize relationships between entities |
Behavioral | Behavioral design patterns are design patterns that identify common communication patterns between objects and realize these patterns |
Name | Description |
---|---|
Singleton | A class of which only a single instance can exist |
Builder | Separates object construction from its representation |
Factory Method | Creates an instance of several derived classes |
Prototype | A fully initialized instance to be copied or cloned |
Name | Description |
---|---|
Adapter | Convert the interface of a class into another interface clients expect. / Adapter lets classes work together, that could not otherwise because of incompatible interfaces. |
Bridge | Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly. |
Composite | Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly. |
Decorator | add additional responsibilities dynamically to an object. |
Flyweight | use sharing to support a large number of objects that have part of their internal state in common where the other part of state can vary. |
Memento | capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the object into initial state when needed. |
Proxy | provide a “Placeholder” for an object to control references to it. |