更新时间:2021-06-24 14:59:06
coverpage
Title Page
Copyright and Credits
Hands-On Design Patterns with Java
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Section 1: Introducing Design Patterns
Unified Modeling Language Primer
Technical requirements
Introducing UML
Understanding behavioral UML diagrams
Activity diagrams
Interaction diagrams
Sequence diagrams
Communication diagrams
Timing diagrams
State machine diagrams
Use case diagrams
Understanding structural UML diagrams
Class diagrams
Component diagrams
Composite structure diagrams
Deployment diagrams
Object diagrams
Package diagrams
Summary
Questions
Further reading
Object-Oriented Design Patterns
Introduction to object-oriented programming
Primary benefits of OOP
Portability
Inheritance
Encapsulation
Polymorphism
Sample OOP class
Instance variables
The this reference
Object-oriented programming approaches
Accessors and mutators
Driver class
Constructors
Overloading constructors and methods
Method call chaining
Principles of design patterns
Creating concise objects
Encapsulating to protect
Being purposeful with inheritance
Learning the complete OOP class
Section 2: Original Design Patterns
Behavioral Design Patterns
Introducing behavioral design patterns
Understanding the chain of responsibility pattern
Use case
UML class diagram
Programming the design pattern
University email handler interface
Main email handler
Academic email handler
Alumni email handler
Advising email handler
Finance email handler
HR email handler
Admin email handler
Exploring the command pattern
Class variables
Constructor
Accessor methods
Power-related methods
Slider-related methods
Using the interpreter pattern
The Expression interface
The MapIntToCharacters class
The Conversion class