task: Explanations and grammar fixes for all the GoF patterns ()

* Grammatical fixes to command pattern

* Update bridge pattern readme

* Fixes to builder pattern grammar

* Update chain of responsibility

* Improvements to the composite example

* Fixes to headings

* Minor updates to decorator pattern

* Update facade

* Update factory example

* Update factory method

* Update flyweight

* Interpreter explanation

* Update iterator readme

* Add explanation for mediator pattern

* Grammatical fixes to memento

* Grammar fixes for observer

* Update explanation for the prototype pattern

* Proxy pattern grammar fixes

* Update singleton

* Grammar fixes to state pattern

* Grammar fixes for strategy

* Grammar fixes, template method

* Grammar fixes for visitor

* Fix typo
This commit is contained in:
Ilkka Seppälä
2021-06-24 15:57:20 +03:00
committed by GitHub
parent bbdff14a66
commit 04bf566dc1
66 changed files with 872 additions and 357 deletions
abstract-factory
adapter
bridge
builder
chain-of-responsibility
command
README.md
src
main
java
com
iluwatar
command
composite
README.md
src
main
java
com
iluwatar
decorator
README.md
src
main
java
com
iluwatar
decorator
facade
factory-method
factory
flyweight
README.md
src
main
java
com
interpreter
README.md
src
main
java
com
iluwatar
interpreter
iterator
mediator
memento
observer
README.md
src
main
java
com
iluwatar
observer
pom.xml
prototype
README.md
src
main
java
com
iluwatar
prototype
proxy
singleton
README.md
src
main
java
com
iluwatar
singleton
state
README.md
src
main
java
com
iluwatar
strategy
README.md
src
main
java
com
iluwatar
strategy
template-method
visitor
README.md
src
main
java
com
iluwatar
visitor

@@ -29,7 +29,7 @@ import lombok.extern.slf4j.Slf4j;
* The Prototype pattern is a creational design pattern in software development. It is used when the
* type of objects to create is determined by a prototypical instance, which is cloned to produce
* new objects. This pattern is used to: - avoid subclasses of an object creator in the client
* application, like the abstract factory pattern does. - avoid the inherent cost of creating a new
* application, like the abstract factory pattern, does. - avoid the inherent cost of creating a new
* object in the standard way (e.g., using the 'new' keyword)
*
* <p>In this example we have a factory class ({@link HeroFactoryImpl}) producing objects by