Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to the observer pattern #10

Merged
merged 2 commits into from
Oct 21, 2014
Merged

Changes to the observer pattern #10

merged 2 commits into from
Oct 21, 2014

Conversation

bernardosulzbach
Copy link
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