Design Patterns

This repository contains code examples and explanations for various design patterns.

Getting Started

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.

Design Patterns Included

Creational Patterns

  • Singleton
  • Factory Method
  • Abstract Factory
  • Builder
  • Prototype

Structural Patterns

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

Behavioral Patterns

  • Chain of Responsibility
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

Contributing

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!

License

This project is licensed under the MIT License - see the LICENSE file for details.