Skip to content

ksteflovic/JAVA-Design-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVA Design Patterns

Gang of Four Design Patterns

Which GOF design patterns contains this repository?

  • Abstract Factory -> Allows the creation of objects without specifying their concrete type.
  • Builder -> Uses to create complex objects.
  • Factory Method -> Creates objects without specifying the exact class to create.
  • Prototype -> Creates a new object from an existing object.
  • Singleton -> Ensures only one instance of an object is created.
  • Adapter -> Allows for two incompatible classes to work together by adding an interface.
  • Bridge.
  • Composite -> Takes a group of objects into a single object.
  • Decorator -> Allows for an object’s behavior to be extended dynamically at run time.
  • Facade -> Provides a simple interface to a more complex underlying object.
  • Flyweight.
  • Proxy.
  • Chain of Responsibility.
  • Command -> Creates objects which encapsulate actions and parameters.
  • Interpreter.
  • Iterator -> Accesses the elements of an object sequentially without exposing its underlying representation.
  • Mediator.
  • Memento.
  • Observer -> Is a publish/subscribe pattern which allows a number of observer objects to see an event.
  • State.
  • Strategy -> Allows one of a family of algorithms to be selected on-the-fly at run-time.
  • Template Method -> Defines the skeleton of an algorithm as an abstract class, allowing its sub-classes to provide concrete behavior.
  • Visitor.

Department of informatics, UKF Nitra, 2020

Releases

No releases published

Packages

No packages published

Languages