Skip to content

Changes to the observer pattern#10

Merged
iluwatar merged 2 commits intoiluwatar:masterfrom
bernardosulzbach:mafagafo-observer
Oct 21, 2014
Merged

Changes to the observer pattern#10
iluwatar merged 2 commits intoiluwatar:masterfrom
bernardosulzbach:mafagafo-observer

Conversation

@bernardosulzbach
Copy link
Copy Markdown
Contributor

A new diagram, hopefully better.

Some code rewriting I thought would make it neater.

Weather.java : lines 31 ~ 33 : cannot comment about performance, but it should not be an issue for this program. I spent some time trying to understand why a switch was used and, after seeing that it does not "change the order" of the enumerated constants, I just rewrote it to a simpler "getTheNext" version.

iluwatar added a commit that referenced this pull request Oct 21, 2014
@iluwatar iluwatar merged commit 9b1c698 into iluwatar:master Oct 21, 2014
@bernardosulzbach bernardosulzbach deleted the mafagafo-observer branch November 17, 2014 21:22
pratigya0 pushed a commit to pratigya0/java-design-patterns that referenced this pull request Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants