This repository contains code examples and explanations for various design patterns.
The examples are written in Java and organized by design pattern type. To get started, simply clone this repository:
git clone https://github.com/GabrielNunes12/design-patterns-java.git
Each design pattern has its own directory, containing a README file explaining the pattern and one or more code examples.
- Singleton
- Factory Method
- Abstract Factory
- Builder
- Prototype
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy
- Chain of Responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
If you would like to contribute a new design pattern or improve an existing one, please create a new branch for your changes and submit a pull request. Contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.