Applying the proposed solution to the example.
Patterns in Java
Collections for States
Listing 4. Applying the proposed solution to the example.
- By Kevlin Henney
- July 17, 2000
public abstract class Workpiece
public abstract void save();
public class Application
public void saveChanges()
Iterator workpiece = changed.iterator();
private Collection saved, changed;
Kevlin Henney is a Principal Technologist with QA Training in the UK.