steve-levesque / Portfolio-Java-DesignPatterns

Description and code examples of 23 well-known design patterns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portfolio-Java-DesignPatterns

Contributors Forks Stargazers Issues MIT License

About

Description and code examples of 23 well-known design patterns.

Behavioral :

  • Chain of Responsability
  • Command
  • Iterator
  • Mediator
  • Momento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

Creational :

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

Structural :

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Private Class Data
  • Proxy

Directories and Files

Project's Tree
  |- src                  # Contains the examples with a dedicated Main class for each of them.
  |   |- Behavioral
  |   |   |- ...
  |   |- Creational
  |   |   |- ... 
  |   |- Structural
  |   |   |- ... 
  |- .gitignore           # Excludes IDE specific, compiled and not needed files.
  |- LICENSE              # Details about the license.
  |- README.md            # This file.

Installation

  1. Create a project with your favorite IDE.
  2. Include the content of /src inside your newly created project.
  3. Execute the main class of your choice.

How to Execute

Depending of your IDE, with Eclipse and IntelliJ it is possible to edit the run configuration according to the main of your choice.

Contribution

Contributions are always welcome, thank you for you time. Here are the steps to do so.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/MyContribution)
  3. Commit your Changes (git commit -m 'Add MyContribution')
  4. Push to the Branch (git push origin feature/MyContribution)
  5. Open a Pull Request

License

See the LICENSE file at the root of the project directory for more information.

Acknowlegements and Sources

About

Description and code examples of 23 well-known design patterns.

License:MIT License


Languages

Language:Java 100.0%