Design Patterns Java™ Workbook
Appendix B. Solutions Mediator (Chapter 10) SOLUTION 10.1....................................................................... ...
Appendix B. Solutions Figure B.12. The PlaceATub class handles component building, and the PlaceATubMediator class handles event ...
Appendix B. Solutions SOLUTION 10.2............................................................................................. ...
Appendix B. Solutions SOLUTION 10.4............................................................................................. ...
Appendix B. Solutions Proxy (Chapter 11)........................................................................................ ...
Appendix B. Solutions SOLUTION 11.4............................................................................................. ...
Appendix B. Solutions Chain of Responsibility (Chapter 12)...................................................................... ...
Appendix B. Solutions SOLUTION 12.3............................................................................................. ...
Appendix B. Solutions Figure B.17. The constructors in the MachineComponent hierarchy support the rules that a MachineRoot objec ...
Appendix B. Solutions Flyweight (Chapter 13).................................................................................... ...
Appendix B. Solutions Clients of the Chemical class can pass in the mass of a batch of a given chemical to determine its molalit ...
Appendix B. Solutions this.atomicWeight = atomicWeight; } public double getMoles(double grams) { return grams / atomicWeight; } ...
Appendix B. Solutions Introducing Construction (Chapter 14)..................................................................... ...
Appendix B. Solutions You can also define default values in the declarations of the attributes for the class. For example, you c ...
Appendix B. Solutions Builder (Chapter 15)...................................................................................... ...
Appendix B. Solutions public Reservation build() throws BuilderException { boolean noHeadcount = (headcount == 0); boolean noDol ...
Appendix B. Solutions Factory Method (Chapter 16)............................................................................... ...
Appendix B. Solutions SOLUTION 16.4............................................................................................. ...
Appendix B. Solutions SOLUTION 16.5............................................................................................. ...
Appendix B. Solutions The diagram also indicates that classes in the MachinePlanner hierarchy accept a Machine object in their c ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf