A collection of commonly used design patterns in Java.
- Singleton
Usecases:
When only one class must be created thoughout the application life cycle.
- Builder
Usecases:
When object to be created have multiple attributes and many of them are optional.
- Factory
Usecases:
When a generic creation method is needed for instances of classes having common attributes or behaviour.
- Adaptor
- Flyweight
- Decorator
- Strategy