Design Patterns Java™ Workbook
Appendix B. Solutions Interpreter (Chapter 25).................................................................................. ...
Appendix B. Solutions public void execute(Context c) { while (term.eval(c) != null) { body.execute(c); } } } SOLUTION 25.3...... ...
Appendix B. Solutions Introducing Extensions (Chapter 26)....................................................................... ...
Appendix B. Solutions SOLUTION 26.2............................................................................................. ...
Appendix B. Solutions The hierarchy partitions fireworks into types of fireworks but also includes the FireworkSimulator subcla ...
Appendix B. Solutions import java.io.*; public class OoStringReader extends StringReader { public OoStringReader(OoString ooStri ...
Appendix B. Solutions Decorator (Chapter 27).................................................................................... ...
Appendix B. Solutions Running this program looks something like: java -classpath \oozinoz\classes com.oozinoz.applica- tions.Sh ...
Appendix B. Solutions public double f(double t) { return Math.exp(source[0].f(t)); } } SOLUTION 27.4............................ ...
Appendix B. Solutions Iterator (Chapter 28)..................................................................................... ...
Appendix B. Solutions if (showInterior) { return node; } } return nextDescendant(); } protected Object nextDescendant() { while ...
Appendix B. Solutions SOLUTION 28.5............................................................................................. ...
Appendix B. Solutions public void run() { synchList.add(0, "Fuser1101"); } public static void main(String[] args) { new ShowConc ...
Appendix B. Solutions Visitor (Chapter 29)...................................................................................... ...
Appendix B. Solutions public void visit(MachineComposite mc) { Iterator i = mc.getComponents().iterator(); while (i.hasNext()) { ...
Appendix B. Solutions class in Chapter 16, Factory Method, places a machine's planning behavior in a separate hierarchy. ...
Appendix C. UML at a Glance..................................................................................................... ...
Appendix C. UML at a Glance Indicate a package by placing the name of the package in a rectangle left-aligned with a larger box ...
Appendix C. UML at a Glance Figure C.2. A MachineComposite object contains either Machine objects or other composites. The Custo ...
Appendix C. UML at a Glance Use a dashed arrow between classes to show a dependency that does not use an object reference. For ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf